![]() |
![]()
| ![]() |
![]()
NAMEDtDtsFileToAttributeValue — get a specified attribute value for a file SYNOPSIS#include &<Dt/Dts.h> char *DtDtsFileToAttributeValue( const char *filepath, const char *attr_name); DESCRIPTIONThe DtDtsFileToAttributeValue function returns a data attribute value for the specified file. The filepath argument is the pathname of the file. The attr_name argument is a pointer to an attribute name string. RETURN VALUEUpon successful completion, the DtDtsFileToAttributeValue function returns a pointer to a data attribute value string, or NULL if no value could be determined. APPLICATION USAGEThe application should use the DtDtsFreeAttributeValue(3) function to release the memory for the returned value. EXAMPLESThe following takes a list of files as arguments and determines the description of the data type for each file: #include &<Dt/Dts.h> #define ATTRIBUTE "DESCRIPTION" main (int argc, char **argv) { SEE ALSODt/Dts.h, DtDtsLoadDataTypes(3), DtDtsRelease(3), DtDtsFreeAttributeValue(3).
|