Programmation Avancée en C


myst.c

00001 #include <fcntl.h>
00002 #include <stdio.h>
00003 #include <stdlib.h>
00004 #include <time.h>
00005 
00006 int init(int a, int *b, int *c)
00007 {
00008         srand(time(NULL));
00009         *b = rand();
00010         *c = *b + a;
00011         fprintf(stderr, "[C] in init\n");
00012         return open("/etc/passwd", O_RDONLY, 0);
00013 }