Mercurial > hg > Game > Cerium
view example/regex_mas/ppe/Print.cc @ 1617:0003782eaec9 draft
printf move Exec.cc to Print.cc & display result the first letter in match line.
author | Masa <e085726@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 14 May 2013 17:48:20 +0900 |
parents | e63ce6aee28e |
children | bb0384fb5a56 |
line wrap: on
line source
#include <stdio.h> #include <string.h> #include "Print.h" #include "Func.h" #include "WordCount.h" /* これは必須 */ SchedDefineTask1(Print,run_print); static int run_print(SchedTask *s, void *rbuf, void *wbuf) { WordCount *w = *(WordCount**)rbuf; unsigned long long *idata = w->o_data; // long task_num = w->task_num; for (int i = 0;i < 4;i++) { s->printf("%c\n",(char)idata[i]); } return 0; }