[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Returns the version of FreeM in use.
Synopsis
short freem_version(char *result);
Parameters
result
The result
parameter is a pointer to a buffer in which the FreeM version information will be returned. The caller must allocate memory for this buffer prior to calling this API. It should be at least 20 bytes in length.
Return Value
Returns 0
.
Example
This example will display the FreeM version on standard output.
#include <stdio.h> #include <string.h> #include <freem.h> int main(int argc, char **argv, char **envp) { char version[20] = {0}; freem_init(``USER''); freem_version(version); printf(``FreeM version: %s\n'', version); }
This document was generated on September 20, 2023 using texi2html 5.0.