Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] good C book for iso c99?



Hi C gurus,

anyone know of a good reference/learning book that includes features of iso c99? I keep hearing about K&R but it's ooooold.

Context, if you want to know:
I'm just learning C, and my book has been teaching me stuff like:
my_struct_ptr = (int* ) malloc( sizeof( my_struct) );
my C book (c. 1994, On to C by Patrick Winston) says you should always make casts like this, or the type will be undefined. C curricula on the web of a similar vintage say the same thing (cf. eg
http://www-ee.eng.hawaii.edu/~tep/EE150/book/chap14/subsection2.1.2.1.html )
However, wikipedia has more recent info, which explains why the cast is no longer necessary:
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?id=1043284351&answer=1047673478
should i just read the ansi standards?

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links