Re: suggested change to fgetln manpage example code

2008-04-08 Thread Marc Espie
On Tue, Apr 08, 2008 at 05:49:09AM +0200, Tobias Ulmer wrote: > Costs 250$/EUR or something last time i've checked. The electronic version should be available for *ways* cheaper, like $18 or so. There's also a paper book by Wiley & Sons, with the rationale and standard, costing ~50 EUR. ISBN 0

Re: suggested change to fgetln manpage example code

2008-04-07 Thread darvaysh
On Mon, 2008-04-07 at 19:33 -0700, Ben Calvert wrote: > 6.5.3.4 The sizeof operator Googling the above gets you http://c0x.coding-guidelines.com/6.5.3.4.html

Re: suggested change to fgetln manpage example code

2008-04-07 Thread Tobias Ulmer
On Mon, Apr 07, 2008 at 07:33:30PM -0700, Ben Calvert wrote: > > On Apr 7, 2008, at 2:20 PM, Tobias Ulmer wrote: >> On Mon, Apr 07, 2008 at 02:01:14PM -0700, [EMAIL PROTECTED] wrote: >>> Can we really assume that sizeof(char) is 1 ? >>> >>> >>> RCS file: /cvs/src/lib/libc/stdio/fgetln.3,v >>> retri

Re: suggested change to fgetln manpage example code

2008-04-07 Thread Ben Calvert
On Apr 7, 2008, at 2:20 PM, Tobias Ulmer wrote: On Mon, Apr 07, 2008 at 02:01:14PM -0700, [EMAIL PROTECTED] wrote: Can we really assume that sizeof(char) is 1 ? RCS file: /cvs/src/lib/libc/stdio/fgetln.3,v retrieving revision 1.15 diff -r1.15 fgetln.3 137c137 < if ((lbuf

Re: suggested change to fgetln manpage example code

2008-04-07 Thread Theo de Raadt
It is so by definition. > Can we really assume that sizeof(char) is 1 ? > > > RCS file: /cvs/src/lib/libc/stdio/fgetln.3,v > retrieving revision 1.15 > diff -r1.15 fgetln.3 > 137c137 > < if ((lbuf = malloc(len + 1)) == NULL) > --- > > if ((lbuf = mallo

Re: suggested change to fgetln manpage example code

2008-04-07 Thread Tobias Ulmer
On Mon, Apr 07, 2008 at 02:01:14PM -0700, [EMAIL PROTECTED] wrote: > Can we really assume that sizeof(char) is 1 ? > > > RCS file: /cvs/src/lib/libc/stdio/fgetln.3,v > retrieving revision 1.15 > diff -r1.15 fgetln.3 > 137c137 > < if ((lbuf = malloc(len + 1)) == NULL) > --- >

Re: suggested change to fgetln manpage example code

2008-04-07 Thread Stefan Kempf
[EMAIL PROTECTED] wrote: > Can we really assume that sizeof(char) is 1 ? Yes. > RCS file: /cvs/src/lib/libc/stdio/fgetln.3,v > retrieving revision 1.15 > diff -r1.15 fgetln.3 > 137c137 > < if ((lbuf = malloc(len + 1)) == NULL) > --- > > if ((lbuf = ma

suggested change to fgetln manpage example code

2008-04-07 Thread ben
Can we really assume that sizeof(char) is 1 ? RCS file: /cvs/src/lib/libc/stdio/fgetln.3,v retrieving revision 1.15 diff -r1.15 fgetln.3 137c137 < if ((lbuf = malloc(len + 1)) == NULL) --- > if ((lbuf = malloc( sizeof(char) * (len + 1))) == NULL) <[EMAI