...
| 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);
/* ... */
|
...