Mail Archives: djgpp/1998/02/10/01:22:54
JODE wrote:
>
> **************************************************
>
> struct Man {
>
> char stick[1];
>
> }man1;
>
> fgets(man1.stick, 1, thefile1);
>
> printf("%C\n", man1.stick);
>
> *****************************************************
First, use %c (not capital 'C').
Second, use printf("%c\n", *(man1.stick)); or printf("%c\n",
man1.stick[0]);
And the last one, are you sure FILE *thefile1!=NULL ?
--
____ ____
| \ / Dim Zegebart
____/____
Moscow Russia
WWW - http://www.geocities.com/siliconvalley/pines/7817
DZcomm - comm library for Allegro
Palantir - multytasking kernel for Allegro (based on PDMLWP)
- Raw text -