| 473 | } |
| 474 | |
| 475 | void filtercountrycode(char *d, const char *s) // returns exactly two uppercase chars or "--" |
| 476 | { |
| 477 | d[0] = d[1] = '-'; |
| 478 | d[2] = '\0'; |
| 479 | if(isalpha(s[0]) && isalpha(s[1]) && !s[2]) |
| 480 | { |
| 481 | d[0] = toupper(s[0]); |
| 482 | d[1] = toupper(s[1]); |
| 483 | } |
| 484 | } |
| 485 | |
| 486 | void trimtrailingwhitespace(char *s) |
| 487 | { |
no outgoing calls
no test coverage detected