...
Code Block | ||
---|---|---|
| ||
void terminate_on_dot(char *str){ int i; for (i = 0; i < strlen(locale); i++){ if(locale[i] == â'.â'){ locale[i] = â\0â; break; } } } /* ... */ char *locale = setlocale(LC_ALL, ""); if (locale == NULL) { /* Handle error */ } terminate_on_dot(locale); /* ... */ |
...