From: Peng Wu Date: Mon, 8 Oct 2012 04:41:56 +0000 (+0800) Subject: improves test_pinyin output X-Git-Tag: 0.7.92~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e024b971a013799ddd201011aca30a94870a46e;p=platform%2Fupstream%2Flibpinyin.git improves test_pinyin output --- 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;