User Profile
Collapse
-
Well dang. Another source redirected me to using the "Boost" library, which is multiplatform and I think will solve my problem. Apart from POSIX and win32 it looks like libraries are the only way to accomplish this. Thanks for your help. -
I would suggest using command-line arguments. Look up argc and argv[]. Once you've got the arguments from command-line, it should be trivial to implement a switch statement with each function in the case of its name.Leave a comment:
-
Using select() instead of scanf() for stdin?
I'm trying to do non-blocking I/O in straight C so I can get my app to accept input from the console while appearing to perform other tasks at the same time. I've done a small MUD server before, and select() was great for checking for input each loop so my program didn't wait on new data to read. My question is, can I use select() this way for stdin, or is there some other way to do it?
No activity results to display
Show More
Leave a comment: