diff options
Diffstat (limited to 'print.c')
| -rw-r--r-- | print.c | 13 |
1 files changed, 13 insertions, 0 deletions
| @@ -29,6 +29,19 @@ | |||
| 29 | 29 | ||
| 30 | bool print_enable = false; | 30 | bool print_enable = false; |
| 31 | 31 | ||
| 32 | void print_S(const char *s) | ||
| 33 | { | ||
| 34 | if (!print_enable) return; | ||
| 35 | char c; | ||
| 36 | |||
| 37 | while (1) { | ||
| 38 | c = *s++; | ||
| 39 | if (!c) break; | ||
| 40 | if (c == '\n') sendchar('\r'); | ||
| 41 | sendchar(c); | ||
| 42 | } | ||
| 43 | } | ||
| 44 | |||
| 32 | void print_P(const char *s) | 45 | void print_P(const char *s) |
| 33 | { | 46 | { |
| 34 | if (!print_enable) return; | 47 | if (!print_enable) return; |
