...
Code Block | ||
---|---|---|
| ||
main.c #include <lmx.h> #include <stdio.h> LMX_HANDLE h; int main() { LMX_HANDLEFEATURE_INFO hFI; LMX_FEATURE_INFOSTATUS FIs; exit_on_error(LMX_Init(&h) ); if ((s if= (LMX_Function(GetFeatureInfo(h,"nonExistingFeature", &FI)) != LMX_SUCCESS) { if (h != NULL) { fprintf(stderr, "%s\n", LMX_GetErrorMessage(h)); LMX_Free(&h); } else { exit(1 fprintf(stderr, "%s\n", LMX_GetErrorMessageSimple(s)); } fflush(stderr); LMX_Free(&h)exit(1); } return 0; } } |