new syntax better
This commit is contained in:
parent
608f3a36bd
commit
ca9da4c330
@ -3,13 +3,5 @@ import core/string;
|
||||
|
||||
namespace io {
|
||||
|
||||
@out (str String) {
|
||||
linux.sys_write(1,(i8*)String,string.len(String));
|
||||
}
|
||||
|
||||
@in (str) () {
|
||||
i8* buffer = i8*(256);
|
||||
linux.sys_read(0,buffer,256);
|
||||
return (str)buffer;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user