Version 1.0.0

The documentation has not caught up with the newest functions in the Collaborative Stage API.  The revised documentation will include the following information.

Except as noted, the function parameters have the same meaning here as in the earlier CS functions.

CSTAGE_API int   CStage_get_number_table_notes( const int schema_number, const int table_number );
The function returns the number of notes at the top of a table. Returns a negative number for any error.

CSTAGE_API char *CStage_get_table_note( const int schema_number, const int table_number, const int note_number );
This function returns the text of a note.  note_number is an integer in the range 1-n where n is the number returned by CStage_get_number_table_notes() for the same table.  Returns NULL for any error.

CSTAGE_API int   CStage_get_number_table_footnotes( const int schema_number, const int table_number );
The function returns the number of footnotes at the bottom of a table.  Returns a negative number for any error.


CSTAGE_API char *CStage_get_table_footnote( const int schema_number, const int table_number, const int footnote_number );
This function returns the text of a footnote.  footnote_number is an integer in the range 1-n where n is the number returned by CStage_get_number_table_footnotes() for the same table. Returns NULL for any error.

CSTAGE_API char *CStage_get_display_code( const int list, const char *storage_code );
Collaborative Stage deals with both storage codes and display codes.  A storage code might be fetched from a saved record.  This function returns the display code for any valid storage code.  list indicates which list of paired values is searched.  1 = T; 2 = N; 3 = M; 4 = AJCC Stage; 5 = Summary Stage 77; 6 = Summary Stage 2000; 7, 8, 9 are for the T-, N-, and M-eval fields respectively.  Returns NULL for any error.
