Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It is important to note that you should call LMX_Init only once, because you should need to create only one LMX_HANDLE. You should continue to use the single handle throughout the lifetime of your application.

Example

You can use the following code to declare and initialize LMX-handle. Note that any allocated memory must be freed before the program exits.

Code Block
languagecpp
#include <lmx.h>
#include <stdio.h>

LMX_HANDLE h;

int main() {
  exit_on_error(LMX_Init(&h));
  // ...
  LMX_Free(h)
  return 0;
}