Home Page -------------------
[Home Page] - [Reviews Main]
-------------------

Book Review
The Standard C Library by Plauger
Highly Recommended
ISBN: 13-131509-9       Publisher: Prentice Hall       Pages: 498pp       Price: £29-95.
Categories:   reference     beginner's c    
Reviewed by John Gameson in C Vu 4-3 (Mar 1992)
Dr. Plauger has impeccable qualifications for writing this book - he was secretary of the ANSI C committee, chairman of its Library sub-committee and convener of the ISO committee; additionally he is senior editor of the C User's Journal(USA) and a regular contributor. Furthermore he has been involved with C from its early days at Bell Labs working with Kerighan of K&R fame. This guarantees to make this book an authority on implementing the ANSI/ISO C standard. The emphasis in the title is on the word "library". The book is concerned exclusively with the 15 libraries used by C as defined by the ANSI and ISO standards - the two are virtually identical. It is intended to show not only how to implement the C library but also how to use it. The book begins where ANSI/ISO leaves off. Dr Plauger has laid out this book after the manner of the C standards by devoting one chapter to each of the 15 headers that go to make up the library. Each chapter begins by describing the background to the header, including its associated functions and macros, making easy and entertaining reading for all. The relevant portion of the ISO standard is then reproduced followed by a discussion of its use.

Next comes the main part of the chapter consisting of the header file (be warned - this is where the going gets tough!) and finally a test function is given for checking the header. Many of the tests are simply "assert" calls. The book contains about 9000 lines of code showing Dr Plauger's way of implementing the ANSI/ISO C standard libraries based on his aim of making the code as readable and as exemplary as possible. Dr. Plauger also includes a few exercises at the end of each chapter suitable for university courses, although the book has not been written specifically as a text book.

Very briefly Dr Plauger has made his header files suitable for UNIX, MSDOS and other implementations. He does this by making each header file include other subsidiary headers or functions. These are then individually tailored to suit the appropriate host system. The result is quite a complex hierarchy that is not always easy to keep track of. The complete set of libraries is implemented and although the coverage of the host system dependent code is restricted to only a few possibilities it bears all the hallmarks of the rest of Dr. Plauger's code. Examples are included for such innovations as the locale functions, wide characters and multi-byte characters e.g. Japanese Kanji . This is a first class book and a true 'piece de resistance'. I can recommend it without hesitation not only to anyone who has to write functions for ANSI/ISO C, but to others who want a better understanding of these standards; indeed those who want to write other functions will no doubt find themselves emulating or adapting it to their own needs (the code is copyright). The code has been tested on Borland, Microsoft, Project Gnu, Saber, Sun UNIX and VAX ULTRIX compilers as well as being validated on the Plum Hall Suite. There is the inevitable Companion Disk - available from the US C User's Group for $49.95.


Other Authors with the same surname

Plauger
ANSI & ISO Standard C by Jim Brodie & P J Plauger [Highly Recommended]  (Reviewed May 1992)
C++ Standard Template Library, The by Lee & Musser & Plauger & Stepanov [Not Recommended]  (Reviewed Apr 2001)
Draft Standard C++ Library, The by P J Plauger [Recommended with Reservations]  (Reviewed Mar 1995)
Programming on Purpose III by P.J. Plauger
Standard C, A Reference (new version) by Jim Brodie & P J Plauger [Recommended]  (Reviewed Jul 1996)
Standard C by Jim Brodie & P J Plauger [Highly Recommended]  (Reviewed May 1991)
Standard C by Jim Brodie & P J Plauger [Recommended]  (Reviewed Mar 1992)


Last Update - 13 May 2001.

To link to this review, please use the URL: http://www.accu.org/bookreviews/public/reviews/s/s001176.htm

Copyright © The Association of C & C++ Users 1998-2000. All rights reserved.

Mirrored from http://www.accu.org/