Versions Compared

Key

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

The LMX_GetErrorMessageSimple function retrieves a string for a corresponding status value.

Prototype

Code Block
languagecpp
const char * LMX_GetErrorMessageSimple
(
   LMX_STATUS LmxStat
);

Parameters

LmxStat
[in] Error status variable.

Return values

The return value is a pointer to a NULL-terminated string that contains descriptive text for the error code.

...

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

int main() 
{
  LMX_STATUS s = LMX_INVALID_PARAMETER;
  fprintf(stderr, "%s\n", LMX_GetErrorMessageSimple(s));
  return 0;
}