DTDTSDATATYPETOATTRIBUTELIST(3)
π NAME π
DtDtsDataTypeToAttributeList β get a list of attributes for a data type. It's a library call, bestie, so pull up a chair and let's get into it. π
β¨ SYNOPSIS β¨
#include &<Dt/Dts.h>
DtDtsAttribute **DtDtsDataTypeToAttributeList(
const char *datatype,
const char *opt_name);
π¦ DESCRIPTION π¦
okay so DtDtsDataTypeToAttributeList is literally the function that returns a list of attributes for a data type. Iconic behavior, no cap. β¨
The datatype argument is a pointer to a data type name string. That's the whole assignment. π
The opt_name argument can be used to specify a name to be associated with the data type. If opt_name is not NULL, it gets used as a pseudo file name in typing β yes, typing. Otherwise, certain attributes may be returned as NULL because the filename components could not be determined. π
π₯ RETURN VALUE π₯
Upon successful completion, DtDtsDataTypeToAttributeList returns a NULL-terminated array of pointers of *DtDtsAttribute, or NULL if no value could be determined. That's the return value, bestie. π
π APPLICATION USAGE π
The application should use DtDtsFreeAttributeList(3) to release the memory for the returned value. Do not ghost the memory, fr fr. π«Ά
The opt_name argument is useful when the attribute being returned contains a modifier string that depends on having a file name included. For example, if the INSTANCE_ICON attribute had the value %name%.icon, opt_name would be used to derive the %name% portion of the attribute value. See dtdtsfile(4). πΈ
π SEE ALSO π
xoxo, the DtDtsDataTy...tributeList(library call) footer π β and since this page didn't print a source/version and date line, we're not inventing one, bestie. That's the whole page.
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms