From 4e024b971a013799ddd201011aca30a94870a46e Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 8 Oct 2012 12:41:56 +0800 Subject: improves test_pinyin output --- tests/test_pinyin.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/test_pinyin.cpp') diff --git a/tests/test_pinyin.cpp b/tests/test_pinyin.cpp index 958e2b9..82f0c6c 100644 --- a/tests/test_pinyin.cpp +++ b/tests/test_pinyin.cpp @@ -52,6 +52,9 @@ int main(int argc, char * argv[]){ prefixbuf[strlen(prefixbuf) - 1] = '\0'; } + fprintf(stdout, "pinyin:"); + fflush(stdout); + if ((read = getline(&linebuf, &linesize, stdin)) == -1) break; -- cgit