B
Billy Bong
I wrote this program which guarantees to use gets safely.
#include <stdio.h>
int main(void)
{
char name[588+1];
printf("Enter your last name: ");
fflush(stdout);
printf("Hi %s\n",gets(name));
return 0;
}
You see, the longest last name in the world is 588 characters, as
explained here:
http://www.everything2.com/index.pl?node_id=1534419
So, my program works for everyone in the world. Guaranteed.
#include <stdio.h>
int main(void)
{
char name[588+1];
printf("Enter your last name: ");
fflush(stdout);
printf("Hi %s\n",gets(name));
return 0;
}
You see, the longest last name in the world is 588 characters, as
explained here:
http://www.everything2.com/index.pl?node_id=1534419
So, my program works for everyone in the world. Guaranteed.