Previously it wasnt working but now its working, TRUST ME
This commit is contained in:
17
build/modules/LibC.core
Normal file
17
build/modules/LibC.core
Normal file
@@ -0,0 +1,17 @@
|
||||
size_t :: U64 // @todo(Krzosa): Need this type
|
||||
long :: #strict int // @todo(Krzosa): Need this type
|
||||
|
||||
malloc :: #foreign (size: size_t): *void
|
||||
realloc :: #foreign (ptr: *void, size: size_t): *void
|
||||
free :: #foreign (ptr: *void)
|
||||
|
||||
FILE :: #strict U64 // Doesnt matter the type just handle
|
||||
fopen :: #foreign (file: *char, mode: *char): *FILE
|
||||
fclose :: #foreign (file: *FILE): int
|
||||
fseek :: #foreign (public_stream: *FILE, offset: long, whence: int): int
|
||||
ftell :: #foreign (public_stream: *FILE): long
|
||||
fread :: #foreign (buffer: *void, element_size: size_t, element_count: size_t, stream: *FILE): size_t
|
||||
|
||||
SEEK_CUR :: 1
|
||||
SEEK_END :: 2
|
||||
SEEK_SET :: 0
|
||||
Reference in New Issue
Block a user