~linaro-toolchain-dev/cortex-strings/trunk

« back to all changes in this revision

Viewing changes to src/reference/helpers/spawn.c

  • Committer: Michael Hope
  • Date: 2010-08-26 22:19:29 UTC
  • Revision ID: michael.hope@linaro.org-20100826221929-ppeg01mnpx34aqrp
Pulled in the initial versions

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stddef.h>
 
2
 
 
3
int spawniis(int (*fun)(int, int, size_t), int runs, int a, int b, size_t c)
 
4
{
 
5
    int result;
 
6
    int i;
 
7
 
 
8
    for (i = 0; i != runs; i++)
 
9
    {
 
10
        result = fun(a, b, c);
 
11
    }
 
12
 
 
13
    return result;
 
14
}