1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

freestanding: add core linux syscalls and associated tests

This commit is contained in:
Dwight Schauer
2019-11-23 10:35:57 -06:00
committed by Alexander Medvednikov
parent 666509623e
commit e724792a67
9 changed files with 779 additions and 9 deletions

View File

@@ -53,9 +53,16 @@ pub fn tos3(s *C.char) string {
}
}
pub fn println(s string) {
}
pub fn string_eq (s1, s2 string) bool {
if s1.len != s2.len { return false }
for i in 0..s1.len {
if s1[i] != s2[i] { return false }
}
return true
}
pub fn string_ne (s1, s2 string) bool {
return !string_eq(s1,s2)
}
/*
pub fn (a string) clone() string {