...
Code Block | ||
---|---|---|
| ||
void strtr(char *str, char orig, char rep) { while (*str != '\0') { if (*str == orig) { *str = rep; } str++; } } | ||
Code Block | ||
| ||
/* ... */ char *env = getenv("TEST_ENV"); if (env == NULL) { /* Handle Error */ } strtr(env,'"', '_'); /* ... */ |
Compliant Solution (local copy)
...