2
0

locale.c 344 B

123456789101112131415
  1. #include <locale.h>
  2. #include <stdio.h>
  3. #include <string.h>
  4. #include "test_helpers.h"
  5. int main(void) {
  6. // TODO: Implement locale properly and test it here
  7. char* val = setlocale(LC_ALL, NULL);
  8. if (strcmp(val, "C") == 0) {
  9. puts("success!");
  10. } else {
  11. printf("setlocale returned the wrong value: %s", val);
  12. }
  13. }