.
This commit is contained in:
14
bac2/os/chap2/ex1.c
Normal file
14
bac2/os/chap2/ex1.c
Normal file
@ -0,0 +1,14 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#define TEST_SIZE 100
|
||||
|
||||
int main(void)
|
||||
{
|
||||
char* blop[TEST_SIZE];
|
||||
for (int i = 0; i < TEST_SIZE; ++i) {
|
||||
blop[i] = malloc(sizeof(char));
|
||||
printf("%p\n", blop[i]);
|
||||
}
|
||||
while(1);
|
||||
}
|
Reference in New Issue
Block a user