OK well i got my problem fixed, and the last thing i need to do is get this to quit out when someone types quit. i tried if(strcmp(buf_io, "quit") == 0) then break; but this wont work for some odd reason.