Skip to content

Commit 6b70ec0

Browse files
committed
Declare C malloc/free in stdlib.d
1 parent 873ca88 commit 6b70ec0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sdlib/core/stdc/stdlib.d

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
module core.stdc.stdlib;
22

3-
extern (C):
3+
extern(C):
4+
45
// @trusted: // Types only.
56
// nothrow:
67
// @nogc:
78

9+
void* malloc(size_t size);
10+
void free(void* ptr);
11+
void* calloc(size_t nmemb, size_t size);
12+
void* realloc(void* ptr, size_t size);
13+
814
void exit(int code);

0 commit comments

Comments
 (0)