version 2003
PA_GetStructureName (structName)
Parameter | Type | Description | |
structName | char * | Pointer to a char buffer | |
Name of the structure |
Description
The routine PA_GetStructureName fills the data pointed to by structName with the name of the current structure.
NOTE
structName can contain up to 255 characters.
Be sure to leave enough room for the path. It is a good habit to always use 255 length strings (declared as Str255 under MacOS or char[256] under Windows).
Example
Creating a name for a private file name (only the file name, not the full path).
char name[256]; PA_GetStructName( name ); strcat( name, "_Prefs");
See Also
PA_GetDataName, PA_GetLogName, PA_GetStructureFullPath.
Error Handling
PA_GetLastError always returns eER_NoErr