On Sat 2008-06-07 16:32:48 UTC-0400, Bill Cunningham ([EMAIL PROTECTED]) wrote:

> Here's a way to verify input.

Are you sure?  What do you intend on proving from the verification?

> int main(void) {
>       int buf[10];  /*input buffer */
>       char input;
>       fgets(input,10,stdin);
>       printf("%s\n",input);
> }

It's not at all clear what you're trying to do here.  Your e-mail has
no context, and your code is insufficient commented.

You are not using the 'buf' array, and you are treating the 'input'
variable as a string when it is a single char.  fgets expects a char
array as the first parameter, so consequently your code will not
compile.

Reply via email to