Original Post
hey!
I have been programming for quite awhile and I have never come across this problem dont know y I cant figure it out but here she goes: I want to input a command which can consist anywhere from 1 to 64 words. when I use the code
inp ends up only containg the first word
No clue y this is so hard....
thanx for the help ahead
Dwiel ~ tazzel3d
[edited by - tazzel3d on June 18, 2002 9:32:52 AM]
//happens somewhere else
char *inp;
inp = new char[256];
//my problematic code
void GetCommand()
{
printf(">");
scanf("%s\n", inp);
};