From fa6a4104b04aa7834fdafc3aca9b479605445ca7 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Mon, 4 Jan 2021 15:28:21 +0300 Subject: Strings work, everything is fine. =) --- examples/translator.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'examples/translator.c') diff --git a/examples/translator.c b/examples/translator.c index 8358a47..29f4d4e 100644 --- a/examples/translator.c +++ b/examples/translator.c @@ -40,6 +40,7 @@ void readlist() if (first) first = 0; else putchar(','); printf("csx_str(\""); + c = getchar(); while (c != EOF && c != '"') { if (c == '\\') c = getchar(); if (c == '"' || c == '\\') putchar('\\'); @@ -47,6 +48,7 @@ void readlist() c = getchar(); } printf("\")"); + c = getchar(); } else if (c == '\'') { if (first) first = 0; else putchar(','); -- cgit v1.2.3