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:
committed by
Alexander Medvednikov
parent
666509623e
commit
e724792a67
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user