view example/string_args/ppe/Exec.cc @ 1793:044b5bd12ef0 draft

minor fix
author Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
date Wed, 04 Dec 2013 17:12:58 +0900
parents f93f05ecd5c8
children
line wrap: on
line source

#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <iostream>
#include <vector>
#include <cstdlib>

#include "SchedTask.h"
#include "Exec.h"
#include "Func.h"

/* これは必須 */
SchedDefineTask(Exec);



static int
run(SchedTask *s, void *rbuf, void *wbuf)
{
    const char *search_word = (char *)s->get_input(rbuf,0);

    long task_size = (long)s->get_param(0);
    long task_number = (long)s->get_param(1);

    //s->xはiteraterで繰り返した数

    s->printf("[task number: %d]\n",task_number);
    s->printf("[args       : %s]\n",search_word);
    s->printf("[task size  : %d]\n",task_number);


    return 0;
}