source: trunk/Softwares/Test/Test_068/src/c/main.c @ 114

Last change on this file since 114 was 114, checked in by rosiere, 15 years ago

1) Fix bug with previous commit
2) Add test libc
3) Change Dhrystone

  • Property svn:keywords set to Id
File size: 488 bytes
Line 
1// $Id: main.c 114 2009-04-16 22:35:37Z rosiere $
2
3//=====[ main ]=================================================================
4/*
5 * All thread execute this routine
6 * Initialize the thread and attribute a Workload at each thread
7 */
8
9#include <stdlib.h>
10#include <stdio.h>
11#include <unistd.h>
12#include <string.h>
13
14int main()
15{
16  FILE * file = fopen("Test_068.txt","w");
17   
18  if (file == NULL)
19    exit (1);
20 
21  fprintf(file,"Hello World !!!\n"); 
22 
23  if (fclose (file) != 0)
24    exit (2);
25 
26  exit (0);
27
28  while (1);
29}
Note: See TracBrowser for help on using the repository browser.