forked from monnerat/BUT2FI_2026_R3.05
tp1
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include "helpers.h"
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
long int index = -1;
|
||||
char * p = (char *) malloc(10 KB);
|
||||
printf("PID = %d\n",getpid());
|
||||
while(1){
|
||||
printf("Ecrire à l'index : ");
|
||||
scanf("%ld",&index);
|
||||
p[index] = 1;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user