From 496765c04389f7f3559c4959ba7950925315a921 Mon Sep 17 00:00:00 2001 From: reluctant-git-user <147989986+reluctant-git-user@users.noreply.github.com> Date: Sun, 15 Oct 2023 17:09:41 +0300 Subject: [PATCH] Update stdio.odin snprintf() prototype fix --- core/c/libc/stdio.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/c/libc/stdio.odin b/core/c/libc/stdio.odin index 1b41c5560..94007595c 100644 --- a/core/c/libc/stdio.odin +++ b/core/c/libc/stdio.odin @@ -182,7 +182,7 @@ foreign libc { fscanf :: proc(stream: ^FILE, format: cstring, #c_vararg args: ..any) -> int --- printf :: proc(format: cstring, #c_vararg args: ..any) -> int --- scanf :: proc(format: cstring, #c_vararg args: ..any) -> int --- - snprintf :: proc(s: [^]char, format: cstring, #c_vararg args: ..any) -> int --- + snprintf :: proc(s: [^]char, n: size_t, format: cstring, #c_vararg args: ..any) -> int --- sscanf :: proc(s, format: cstring, #c_vararg args: ..any) -> int --- vfprintf :: proc(stream: ^FILE, format: cstring, arg: ^va_list) -> int --- vfscanf :: proc(stream: ^FILE, format: cstring, arg: ^va_list) -> int ---