GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
DtDtsBufferToDataType(library call) DtDtsBufferToDataType(library call)

DtDtsBufferToDataType — get the data type for a byte stream

#include &<Dt/Dts.h>
char *DtDtsBufferToDataType(
const void *buffer,
const int size,
const char *opt_name);

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 typed.

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 determined.

Upon successful completion, the DtDtsBufferToDataType function returns a pointer to a data type name string, or NULL if no value could be determined.

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.

Dt/Dts.h, DtDtsDataToDataType(3), DtDtsLoadDataTypes(3), DtDtsFreeDataType(3).


Search for    or go to Top of page |  Section l |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.