
TX/MAM Database Protocol Manual - document version: 2.2 – Page 37
12. Utility functions
12.1 Returning the current library version
int cob_library_version( void );
Parameters
No parameters required.
Result
The result of the function is an integer with the library version.
Example
Checking if the library has (at least) the required version:
if ( cob_library_version() < (REQUIRED_LIB_VERSION) ){
printf( "applet needs at least version %d of libcobalt (current version: %d), "
"execution stopped.", REQUIRED_LIB_VERSION, cob_library_version() );
return -1;
}
Comentarios a estos manuales