Mercurial > hg > Game > Cerium
annotate example/dependency_task/ppe/Print.cc @ 109:028ffc9c0375 draft
Cerium cvs version
author | gongo@gendarme.local |
---|---|
date | Wed, 12 Nov 2008 17:39:33 +0900 |
parents | |
children | 768452fab95e |
rev | line source |
---|---|
109 | 1 #include <stdio.h> |
2 #include <string.h> | |
3 #include "Print.h" | |
4 #include "Func.h" | |
5 | |
6 /* ¤³¤ì¤Ïɬ¿Ü */ | |
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 } |