User Profile

Collapse

Profile Sidebar

Collapse
SnuggleSort
SnuggleSort
Last Activity: Mar 27 '07, 09:24 PM
Joined: Mar 27 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • SnuggleSort
    replied to Using select() instead of scanf() for stdin?
    in C
    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.
    See more | Go to post

    Leave a comment:


  • SnuggleSort
    replied to How to call functions from the command line
    in C
    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.
    See more | Go to post

    Leave a comment:


  • SnuggleSort
    started a topic Using select() instead of scanf() for stdin?
    in C

    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?
    See more | Go to post
No activity results to display
Show More
Working...