HeaderTypes/RB_FindHeaderType [ Functions ]
FUNCTION
Return the header type that corresponds to the type character.
RESULT
- 0 -- there is no such header type
- pointer to the header type otherwise.
SOURCE
struct RB_HeaderType *RB_FindHeaderType( unsigned char typeCharacter ) { struct RB_HeaderType *headertype = 0; if ( typeCharacter < MAX_HEADER_TYPE ) { headertype = &( header_type_lookup_table[typeCharacter] ); if ( ( headertype->typeCharacter == typeCharacter ) && ( headertype->indexName ) ) { return headertype; } } return 0; }