Skip to content

Commit 4128eea

Browse files
xackusVexu
authored andcommitted
std.c: add fmemopen
1 parent ce7dcf2 commit 4128eea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/std/c.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ pub extern "c" fn prctl(option: c_int, ...) c_int;
342342
pub extern "c" fn getrlimit(resource: rlimit_resource, rlim: *rlimit) c_int;
343343
pub extern "c" fn setrlimit(resource: rlimit_resource, rlim: *const rlimit) c_int;
344344

345+
pub extern "c" fn fmemopen(noalias buf: ?*c_void, size: usize, noalias mode: [*:0]const u8) ?*FILE;
346+
345347
pub const max_align_t = if (std.Target.current.abi == .msvc)
346348
f64
347349
else if (std.Target.current.isDarwin())

0 commit comments

Comments
 (0)