cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/09/12:57:19

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

**************************************************

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!

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019