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

  man pages->HP-UX 11i man pages -> DtDtsBufferToDataType (3)              


 DtDtsBufferToDataType(library call)     DtDtsBufferToDataType(library call)

 NAME    [Toc]    [Back]
      DtDtsBufferToDataType - get the data type for a byte stream

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

 DESCRIPTION    [Toc]    [Back]
      The DtDtsBufferToDataType function returns the data type name for a
      given byte stream.

      The buffer argument is a pointer to the buffer of the data to be

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

      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

 RETURN VALUE    [Toc]    [Back]
      Upon successful completion, the DtDtsBufferToDataType function returns
      a pointer to a data type name string, or NULL if no value could be

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

      The DtDtsBufferToDataType 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),

                                    - 1 -       Formatted:  January 24, 2005
[ Back ]
 Similar pages
Name OS Title
DtDtsBufferToAttributeList HP-UX get a list of data attributes for a byte stream
DtDtsBufferToAttributeValue HP-UX get a single data attribute value for a byte stream
putlong Tru64 Places long byte quantities into the byte stream
putshort Tru64 Places short byte quantities into the byte stream
tt_message_arg_bval_set HP-UX set the byte-array value and type of a message argument
xlate_pro_disk_next_block IRIX get translation byte stream pointers
getw Tru64 Get a byte or word from an input stream
getchar_unlocked Tru64 Get a byte or word from an input stream
putc Tru64 Write a byte or a word to a stream
putc_unlocked Tru64 Write a byte or a word to a stream
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service