Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
C string not long enough
Hmmm, im writing an infinite net send program in c, and you can enter your own message. I use
scanf("%s",message);
to get the string, then i use
printf("MESSAGE %s SET",message);
to show the message back to me. but if i enter "hello world" (with or without quotes) the printf() returns
MESSAGE hello SET
Any one know how you fix this, or have a link to a site where it has info on this sort of stuff?
thanks, Zalifer
So you are doing something wrong… Scanf(%s) read chars until first white character but gets read string until you write new line char - '&*92;n'. You can read this: http://www.unet.univie.ac.at/aix/libs/basetrf1/gets.htm