[CODE] Line input function

From: Jim Persson (jim@linux.nu)
Date: 06/07/01

Maybe it already exists but anyway.

I have encountered an coding problem i can't resolve myself

i am using Circle30bpl18 and i need a function do get input directly
from the user like the string_write procedure, but it should only get
ONE line. And then return the results.

it should be something like this

char line_input(char *prompt) {
 // code here

the char *prompt should be the prompt... so if the procedure was called =
like this

usersname = line_input("Give me your name: ");
send_to_char(usersname, ch);

the output should be

Give me your name: Jim (the users input)

Any ideas?


   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |

This archive was generated by hypermail 2b30 : 12/05/01 PST