Mercurial > hg > Game > Cerium
annotate example/dependency_task/ppe/Print.cc @ 298:768452fab95e draft
from EUC to UTF-8
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 07 Jun 2009 15:17:41 +0900 |
parents | 028ffc9c0375 |
children | 839e34d0cc3c |
rev | line source |
---|---|
109 | 1 #include <stdio.h> |
2 #include <string.h> | |
3 #include "Print.h" | |
4 #include "Func.h" | |
5 | |
298 | 6 /* これは必須 */ |
109 | 7 SchedDefineTask(Print); |
8 | |
9 int | |
10 Print::run(void *rbuf, void *wbuf) | |
11 { | |
12 int *idata = (int*)get_input(rbuf, 0); | |
13 int length = get_param(0); | |
14 | |
15 printf("[TASK_PRINT]\n"); | |
16 for (int i = 0; i < length; i++) { | |
17 printf("%2d ", idata[i]); | |
18 } | |
19 printf("\n"); | |
20 | |
21 return 0; | |
22 } |