Returns the number of attributes present in the associated GSA
FILE.
Syntax
intl pipObjectGetAttributeCount ( pipObjectFile obj_h, intl * attr_count);
Arguments
obj_h The file handle of the opened object file. Input.
*attr_count The number of fields in the opened attribute (GSA) file. Output.
Return Value
Number of fields in ObjectFile. If a GSA file does not exist, a PIP_ERROR is returned and
attr_count is set to zero.
Prerequisites
pipObjectFileOpen
Alternates
None.
Example
intl count;
if( pipObjectGetAttributeCount( hGsb, &count ) == PIP_OK )
{
for( intl i = 0; i < count; i++ )
{
pipAttributeInfoStruct info;
pipObjectGetAttributeInfoByNumber( hGsb, i, &info );
}
}