summaryrefslogtreecommitdiffstats
path: root/src/examples/child.c
blob: 0c1648d6e9938c1710854dd0d8e86f193c2a65d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* child.c
 * See parent.c */
#include <syscall.h>
#include <stdio.h>

int main (int argc, char* argv[])
{
  int i;
  
  if (argc != 2)
    return 0;
  
  for(i = 0; i < 20000; i++)
  {
    int a = (i * i) + (i * i);
    int b = i;
    i = a; a = b; i = b;
  }
  printf("PASS Lab %s ON Time.\n", argv[1]);

  return 0;
}