when I use "getc()" a new screen appears waiting for the user to type a character (I think this is the stdin) and that way a can get a character in my variable. But what should I do to get a string from the same input?? I'm trying using fscanf( inPort "%s" toing) and gets( toing inPort ) but I don't know what sould
i put instead of "inPort". The manual says that it should work if I
just put nothing, but if I do so, my variable "toing" it's only
showing a couple of double quotes no matter what I type.
so what am I doing wrong??
In reply to oldmouldy:
gets(inPort) is not useful in a UI based program like Allegro. It only functions if you have a TELSKILL (set telskill) window open. If you have a need to get a string from the user try axlEnterString(?prompt l_prompts). You should only use gets if you are reading from a file.
lots of thanks people from beyond, I was trying now with lineread(), but I'll verify what you're telling me to see what works better. Thanks again. Have a fantastic one.
In reply to DieFab:
HEEEYY!! fxxffxxf!!! thats what I was looking for!! youre such a wonderfull person!! I hope good bless you with lots of children/.