0 Members and 1 Guest are viewing this topic.
while(1) { char text[100]; nio_printf("> "); // No text given, exit console. if(!nio_gets(text)) { break; } if(!strcmp(text, "help")) { nio_printf("term help:\n----------\n"); }}
Oh, gets without a size argument ? Not very secure
So recently I've tried to use the ndless sdk to make some stuff for my calculator. Nspireio is pretty cool and all, but I really can't make sense of the documentation. I figured out how to use nio_printf as that's basically printf, but there's no nio_scanf... what am I supposed to do to take input?