I want to take input from the user in a console and want to have a prompt for that!
How can I do that?
I want to take input from the user in a console and want to have a prompt for that!
How can I do that?
You can parse it however you like, but that's highly dependent on what kind of input you're trying to get.Code:char buffer[BUFSIZ]; /* BUFSIZ is defined in <stdio.h> */ printf("Stuff: "); fflush(stdout); fgets(buffer, sizeof buffer, stdin); /* Now you have the user's input... */
The information given in this message is known to work on FreeBSD 4.8 STABLE.
*The above statement is false if I was too lazy to test it.*
Please take note that I am not a technical writer, nor do I care to become one.
If someone finds a mistake, gleaming error or typo, do me a favor...bite me.
Don't assume that I'm ever entirely serious or entirely joking.
But I want to show the cursor there like as in ms word!
Works for me...Originally posted by Lord CyKill
But I want to show the cursor there like as in ms word!
Definition: Politics -- Latin, from
poly meaning many and
tics meaning blood sucking parasites
-- Tom Smothers