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
RE: C string not long enough
Posts: Location: Joined: 01.01.70 Rank: Guest
Posted on 06-07-06 16:25
I have no idea how you are screwing this up, but I typed up some quick code to show you what yours should look like..
int main(int argc, char *argv)
printf("MESSAGE %s SET",message);
Hellbound Hackers is the collective work of the staff and the community and is therefore licensed under the CC BY-NC-SA license.