*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> DtDtsBufferToAttributeValue (3)              
Title
Content
Arch
Section
 

Contents


 DtDtsBufferToAttributeValue(libraryDtcDatlslB)ufferToAttributeValue(library call)




 NAME    [Toc]    [Back]
      DtDtsBufferToAttributeValue - get a single data attribute value for a
      byte stream

 SYNOPSIS    [Toc]    [Back]
      #include <Dt/Dts.h>
      char *DtDtsBufferToAttributeValue(
      const void *buffer,
      const int size,
      const char *attr_name,
      const char *opt_name);

 DESCRIPTION    [Toc]    [Back]
      The DtDtsBufferToAttributeValue function returns a data attribute
      value for a given byte stream.  The buffer argument is a pointer to
      the buffer of the data to be typed.

      The size argument is the size of the buffer in bytes.

      The attr_name argument is a name of the attribute.

      The opt_name argument can be used to specify a name to be associated
      with the buffer.  If the opt_name argument is not NULL, it is used as
      a pseudo file name in typing; otherwise, certain attributes may be
      returned as NULL because the filename components could not be
      determined.

 RETURN VALUE    [Toc]    [Back]
      Upon successful completion, the DtDtsBufferToAttributeValue function
      returns a pointer to a data attribute value string, or NULL if no
      value could be determined.

 APPLICATION USAGE    [Toc]    [Back]
      The application should use the DtDtsFreeAttributeValue(3) function to
      release the memory for the returned value.

      The DtDtsBufferToAttributeValue function assumes that the buffer is
      readable and writable by the user, group and other file classes and
      selects a type accordingly.  An application requiring a type based on
      read-only permissions should use DtDtsDataToDataType.

 SEE ALSO    [Toc]    [Back]
      Dt/Dts.h, DtDtsDataToDataType(3), DtDtsLoadDataTypes(3),
      DtDtsFreeAttributeValue(3).


                                    - 1 -       Formatted:  January 24, 2005
[ Back ]
      
      
 Similar pages
Name OS Title
DtDtsBufferToDataType HP-UX get the data type for a byte stream
DtDtsBufferToAttributeList HP-UX get a list of data attributes for a byte stream
putshort Tru64 Places short byte quantities into the byte stream
putlong Tru64 Places long byte quantities into the byte stream
btowc FreeBSD convert between wide and single-byte characters
btowc Tru64 Convert a single byte from multibyte-character to
btowc Linux convert single byte to wide character
wctob Linux try to represent a wide character as a single byte
wctob Tru64 Convert a wide character to a single byte in
wctob FreeBSD convert between wide and single-byte characters
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service