unsigned char str[BUFF_SIZE]; // Set the thread local printf("The thread locale is now set to %s.\n", setlocale(LC_ALL, "German")); // Retrieve the time string from the helper function if (get_time(str) == 0) { printf("The time in German locale is: '%s'\n", str); }