Skip to content

Commit 216a505

Browse files
committed
builtin: more libc fn definitions
1 parent edf0bc3 commit 216a505

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

vlib/builtin/cfns.c.v

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,15 @@ fn C.strchr(s &char, c int) &char
177177
[trusted]
178178
fn C.getchar() int
179179

180+
[trusted]
181+
fn C.strdup(s &char) &char
182+
183+
[trusted]
184+
fn C.strncasecmp(s &char, s2 &char, n int) int
185+
186+
[trusted]
187+
fn C.strcasecmp(s &char, s2 &char) int
188+
180189
[trusted]
181190
fn C.strerror(int) &char
182191

0 commit comments

Comments
 (0)