mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
minor V.js fixes
This commit is contained in:
@ -17,6 +17,15 @@ fn C.strlen(s byteptr) int
|
||||
|
||||
fn todo() { }
|
||||
|
||||
pub fn tos(s byteptr) string {
|
||||
len := 0
|
||||
#len = s.length;
|
||||
return string{
|
||||
str: s
|
||||
len: len
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pub fn (a string) clone() string {
|
||||
return a
|
||||
|
Reference in New Issue
Block a user