On Fri, 2005-03-18 at 15:46 +0000, Jochen Voss wrote: > On Fri, Mar 18, 2005 at 10:05:43AM -0500, Michel DÃnzer wrote: > > On Fri, 2005-03-18 at 15:19 +0100, Wolfram Quester wrote: > > > > > > On Fri, Mar 18, 2005 at 02:56:38PM +0100, Lo???c Le Guyader wrote: > > > > Le 18 March 2005, Wolfram Quester, ? bout, prit son clavier pour > > > > taper sur son ?cran: > > > > > The solution is to write int c; instead of char c; > > > > > > > > What about "signed char c;"? > > > > > > Yes, I thought about this too, but according to man getopt_long > > > getopt_long itselft returnes an int. > > > > > > In the end, I think it doesn't matter. > > > > If the type returned by the afunction doesn't matter, then what does? > Huh? The return type does matter: "unsigned char" will clearly not work, > "signed char" and "int" might.
Why would you assign the return value of a function that returns an int to a char, be it signed or unsigned? -- Earthling Michel DÃnzer | Debian (powerpc), X and DRI developer Libre software enthusiast | http://svcs.affero.net/rm.php?r=daenzer