15 lines
269 B
SourcePawn
15 lines
269 B
SourcePawn
|
import core/linux;
|
||
|
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;
|
||
|
}
|
||
|
}
|