Dave Hylands correctly pointed out:
"> An example call with scanf() to take just one character is
> char array_to_which_the_character_is_copied[some_length];
> scanf("%1c", array_to_which_the_character_is_copied[0]);
Actually, that should be (notice addition of &):
scanf("%1c", &array_to_which_the_character_is_copied[0]);
"
Touché.Message
Re: [AVR-Chat] use of scanf
2005-06-23 by Colin Paul Gloster