From: joakim AT hiway DOT fi (JODE) Newsgroups: comp.os.msdos.djgpp Subject: Doing wrong! But where? Date: Mon, 09 Feb 1998 15:37:39 GMT Organization: Clinet, Espoo, Finland. Lines: 22 Message-ID: <34df149c.11485161@news.hiway.fi> NNTP-Posting-Host: ppp-9.hiway.fi To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk ************************************************** struct Man { char stick[1]; }man1; fgets(man1.stick, 1, thefile1); printf("%C\n", man1.stick); ***************************************************** The thefile1 first line contains only a single "Y" charracter! I just can't get it right! The printf prints something realy wierd! Where do I do wrong? Joakim AT hiway DOT fi http://www.hiway.fi/~joakim Cosmodrome/Dgt!