#define maxLen 20
char resBuf[50];
/* Get the properties for layer ID 1038, with the maximum size of the array at 20 bytes */
if ( ( nError = IN_GetLayerProperties(1038, 20, "numBits | numColors | grayScale" | resBuf ) ) != IN_SUCCESS )
{
ErrorHandler ( nError, "Error message:" );
}