This commit is contained in:
2021-03-01 16:39:46 +01:00
parent 0453269f24
commit 5b651516d2
35 changed files with 1013 additions and 14 deletions

View File

@@ -0,0 +1,19 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int *p;
p = malloc(sizeof(int));
if(p != NULL) {
*p=99;
printf("Allokation erfolgreich ... \n");
}
else {
printf("Kein virtueller RAM mehr verfügbar ...\n");
return EXIT_FAILURE;
}
free(p);
printf("Speicher nun erfolgreich freigegeben ");
return EXIT_SUCCESS;
}