Files
BUT2FI_2026_R3.05/tp/tp1/src/ex2/rss.c
T

16 lines
274 B
C
Raw Normal View History

2026-09-03 07:32:05 +02:00
#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;
}
}