We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1b2d86 commit 3588210Copy full SHA for 3588210
c/malloc.c
@@ -34,19 +34,6 @@
34
#include "common.h"
35
36
int main(void) {
37
- /* Basic usage */
38
- {
39
- size_t bytes = sizeof(int) * 2;
40
- int *is = malloc(bytes);
41
- if (is == NULL) {
42
- printf("malloc failed\n");
43
- } else {
44
- is[0] = 1;
45
- assert(is[0] == 1);
46
- free(is);
47
- }
48
49
-
50
/*
51
# free
52
posix/README.md
@@ -13,7 +13,7 @@
13
1. [System V semaphores](semaphore_sysv.c)
14
1. semaphore_unnamed.c TODO
15
1. semaphore_named.c TODO. https://stackoverflow.com/questions/16400820/c-how-to-use-posix-semaphores-on-forked-processes
16
-1. [mmap](mmap.c)
+1. mmap
17
1. [MAP_PRIVATE](map_private.c)
18
1. Shared memory
19
1. [shm_open](shm_open.c)
posix/mmap.c
0 commit comments