changeset 968:d082c861d5c2

tweak
author ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
date Thu, 08 Apr 2021 20:52:08 +0900
parents 64d713b3dba5
children 5573463fe469
files src/parallel_execution/examples/wc/WcImpl.cbc
diffstat 1 files changed, 2 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/src/parallel_execution/examples/wc/WcImpl.cbc	Thu Apr 08 20:49:46 2021 +0900
+++ b/src/parallel_execution/examples/wc/WcImpl.cbc	Thu Apr 08 20:52:08 2021 +0900
@@ -42,17 +42,6 @@
     Count char
     TODO
     */
-  /*
-  int N = 256;
-  char str[N];
-  int line = 0;
-  while(fgets(str, N, wc->file)!=NULL){
-    printf("%s\n",str);
-    line++;
-  }
-  printf("line = %d\n", line);
-  //goto countUp(wc, next);
-  */
   
   static char stdinBuf[BUFSIZ];
   static char stdoutBuf[BUFSIZ];
@@ -63,11 +52,11 @@
     fputs("stdinのバッファリングを変更できませんでした。", stderr);
     exit(EXIT_FAILURE);
   } else {
-  printf("setvbuf\n");  
+  printf("setvbuffer");  
   }
   while(fgets(line, LINE_SIZE, wc->file)!=NULL){
     printf("%s", line);
   }
  
-
+  //goto countUp(wc, next);
 }