REVIEW - Pure C Programming


Title:

Pure C Programming

Author:

Amir Afzal

ISBN:

Publisher:

Prentice Hall (1999)

Pages:

515pp

Reviewer:

Francis Glassborow

Reviewed:

June 1999

Rating:

★☆☆☆☆


The merit of this book is that it at least keeps to its declared objective. However that is not to say that I agree with all that the author presents. Then there is a matter of an inadequate index. On page 402 we have a description of

fgets()
. I checked for
gets()
in the index without success (though
gets()
is referred to in a net at the end of
fgets()
. The note mentions the different behaviour between the two functions with respect to the new-line character but nowhere mentions that other vital difference - limiting the length of input.

However note that the author everywhere uses

scanf()
(which is well known to be a cause of numerous bugs in programs. He pursues that old style of declaring function prototypes in the body of a function that is going to use them. Then where are the details of functions such as
strcpy()
and
strlen()
(but he does have his own
StringLen()
function) to name but two? What is the purpose of have a substantial library of functions if you are going to replace them with your own versions providing the same functionality?

Then, despite the 1999 copyright date the author completely ignores (as far as I can see) the existence of

const
and
volatile
.

Another ill-conceived book that should certainly have been sent back for a rewrite at the technical review stage, though I question that it should ever have been acquired.


Book cover image courtesy of Open Library.





Your Privacy

By clicking "Accept Non-Essential Cookies" you agree ACCU can store non-essential cookies on your device and disclose information in accordance with our Privacy Policy and Cookie Policy.

Current Setting: Non-Essential Cookies REJECTED


By clicking "Include Third Party Content" you agree ACCU can forward your IP address to third-party sites (such as YouTube) to enhance the information presented on this site, and that third-party sites may store cookies on your device.

Current Setting: Third Party Content EXCLUDED



Settings can be changed at any time from the Cookie Policy page.