Escape hard newlines in a string.
| 1191 | |
| 1192 | // Escape hard newlines in a string. |
| 1193 | void RAW_escape(FILE *out, const char *token) |
| 1194 | { |
| 1195 | const char *p; |
| 1196 | for (p = token; *p; p++) { |
| 1197 | if (*p == '\n') { |
| 1198 | fputs("\\n", out); |
| 1199 | continue; |
| 1200 | } |
| 1201 | fputc(*p, out); |
| 1202 | } |
| 1203 | } |
| 1204 | |
| 1205 | // Escape token for output as CSV string. |
| 1206 | void CSV_escape(FILE *out, const char *token) |
nothing calls this directly
no outgoing calls
no test coverage detected