Versions Compared

Key

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

The LMX_Init function initializes the protection system.

Prototype

Code Block
languagecpp
LMX_STATUS LMX_Init
(
   LMX_HANDLE *pLmxHandle
);

Parameters

pLmxHandle
[out] Pointer to LM-X handle.

Return values

On success, this function returns the status code LMX_SUCCESS.

On failure, this function returns an error code in the format described in Return codes.

Remarks

This function should be the first one called.

...

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;
}