Lorenzo Villari wrote:
> Ahem... I think I've found a typo on my copy of The C Programming Language
> Second Edition. On section 1.9 (page 32 on my version, the Italian one )
> you do find:
>
<snip>
> The line with the error is
>
> for(i = 0; i < line - 1 && (c = getchar()) != EOF && c != '\n'; ++i)
>
> it should be
>
> for(i = 0; i < lim - 1 && (c = getchar()) != EOF && c != '\n'; ++i)
Yes, the English language version has lim, not line.
--
Richard Heathfield :
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ:
http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc:
http://users.powernet.co.uk/eton