| 958 | } |
| 959 | |
| 960 | char *xstrdup_tolower(const char *string) |
| 961 | { |
| 962 | char *result; |
| 963 | size_t len, i; |
| 964 | |
| 965 | len = strlen(string); |
| 966 | result = xmallocz(len); |
| 967 | for (i = 0; i < len; i++) |
| 968 | result[i] = tolower(string[i]); |
| 969 | return result; |
| 970 | } |
| 971 | |
| 972 | char *xstrdup_toupper(const char *string) |
| 973 | { |
no test coverage detected