example.c 484 B

1234567891011121314151617181920
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include "findlocale.h"
  4. int
  5. main(int in_argc, char **in_argv) {
  6. FL_Locale *locale;
  7. FL_FindLocale(&locale, FL_MESSAGES);
  8. printf("I think that your current settings are...\n"
  9. "Language = '%s'\nCountry = '%s'\nVariant = '%s'\n",
  10. locale->lang ? locale->lang : "(null)",
  11. locale->country ? locale->country : "(null)",
  12. locale->variant ? locale->variant : "(null)");
  13. FL_FreeLocale(&locale);
  14. return 0;
  15. }