DTDTSDATATYPETOATTRIBUTELIST(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸŽ€ 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