Versions Compared

Key

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

...

See Secure store and Client store for more information about secure store and client store.

Example

The following is a basic example of using LMX_ClientStoreSave, which saves the "DataToBeStored" string to "myFile".

 

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

LMX_HANDLE h;

int main() {
  char m[LMX_MAX_LONG_STRING_LENGTH];

  exit_on_error(LMX_Init(&h));
  exit_on_error(LMX_ClientStoreSave(h, "myFile", "DataToBeStored"));

  exit_on_error(LMX_ClientStoreLoad(h, "myFile", m));
  printf("Loaded: %s\n", m);

  return 0;
}