Could you elaborate a little bit more about using select() instead of freopen? Or how would that apply on the above case? Thanks for your reply.
Type: Posts; User: kaylaneko
Could you elaborate a little bit more about using select() instead of freopen? Or how would that apply on the above case? Thanks for your reply.
I'm currently redirecting in a non-portable manner the standard input as:
freopen ("/dev/tty", "r", stdin);
which /dev/tty always points to the user's terminal. This helps me to read from...
is it possible to use strncpy() and iterate over the string char by char? using the same loop type, the reason I ask this is becuase I need to take different branches based on certain chars found.
...
How can I iterate over the individual characters of a string and copying them one by one to a struct. (in other words, I want to copy char by char into a struct member until a flag is triggered, then...