sapphire/core/__internal/io/linux.sp

15 lines
269 B
SourcePawn
Raw Normal View History

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;
}
}