Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ffcccc
void strtr(char *str, char orig, char rep) {
  while (*str != '\0') {
    if (*str == orig) {
      *str = rep;
    }
    str++;
  }
}
Code Block
bgColor#ffcccc

/* ... */

char *env = getenv("TEST_ENV");
if (env == NULL) {
  /* Handle Error */
}

strtr(env,'"', '_');


/* ... */

Compliant Solution (local copy)

...