forked from starnakin/IronGOLEM
24 lines
318 B
Plaintext
24 lines
318 B
Plaintext
define GET_LINE=0;
|
|
main()
|
|
{
|
|
local ptr;
|
|
|
|
name = "get_line";
|
|
if (GET_LINE == 0)
|
|
return;
|
|
|
|
putstr("yo\n");
|
|
ptr = get_line();
|
|
test_str(ptr, "yo\n", "");
|
|
free(ptr);
|
|
|
|
putstr("ENTER\n");
|
|
ptr = get_line();
|
|
test_str(ptr, "\n", "");
|
|
free(ptr);
|
|
|
|
putstr("ctrl + D\n");
|
|
ptr = get_line();
|
|
test_num(ptr, NULL, "");
|
|
}
|