improves test_pinyin output
authorPeng Wu <alexepico@gmail.com>
Mon, 8 Oct 2012 04:41:56 +0000 (12:41 +0800)
committerPeng Wu <alexepico@gmail.com>
Mon, 8 Oct 2012 04:41:56 +0000 (12:41 +0800)
tests/test_pinyin.cpp

index 958e2b9..82f0c6c 100644 (file)
@@ -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;