Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
100%
(5)
100% found this document useful (5 votes)
5K views
514 pages
Plauger. The Standard C Library (PH, 1991) (ISBN 0138380120) (T) (C) (514s) PDF
Uploaded by
Edwin Espinel
AI-enhanced title
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save Plauger. The standard C library (PH, 1991)(ISBN 01... For Later
100%
100% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
100%
(5)
100% found this document useful (5 votes)
5K views
514 pages
Plauger. The Standard C Library (PH, 1991) (ISBN 0138380120) (T) (C) (514s) PDF
Uploaded by
Edwin Espinel
AI-enhanced title
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Plauger. The standard C library (PH, 1991)(ISBN 01... For Later
100%
100% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 514
Search
Fullscreen
THE STANDARD
«
*
« > ocale.h>
*
*«
*
*
enal.h >
* < =
*
*
LIBRARY PJ. PLAUGERTHE STANDARD LIBRARY PJ. PLAUCER THE STANDARD C LIBRARY shows you how to use all of the fibrary functions mandated by the ANSI and ISO Standards for the programming language C. To help you understand how to use the library, this book also shows you how to implement it. You see approximately 12,000 fines of tested, working code that is highly portable across diverse computer architectures. THE STANDARD C LIBRARY explains how the library was meant to be used and how it car be used. It places particular emphasis on features added to C as part of the C Standard. ‘These features include support for multiple locales (cultural conventions) and very large: character sets (such as Kanij. ‘The code presented in this book has been tested with C compilers from Borland, Saber", Project Gnu, Sun, UNDG, and VAX®, ULTRIX®. It has passed the widely used Plum Hall Validation Suite” tests for library functions. It has also survived an assortment of public- domain programs designed to stress C implementations and ilurinate their darker corners. The mathematical functions are particularly well-enginoered and tested. Finally, THE STANDARD C LIBRARY shows you many principles of library design in ‘general. You learn how to design and implement libraries that are highly cohesive and reusable, PJ. Plaugor is one of the original usors of the C programening language. He chaired the Library Subcommittee of X3/11—the ANStauthorized committee that developed the C Standard. He continues as Secretary to X3J11 and Convenor of WG14, the ISO-authorized ‘committee developing further enhancements ot the C Standard. Dr. Piauger Is co-author (with Brian Kernighan) of several highly acclaimed books, including SOFTWARE TOOLS, SOFTWARE TOOLS IN PASCAL, and THE ELEMENTS OF PROGRAMMING STYLE. With stn Brodie, Chair of X3J11, he co-authored STANDARD C, a complete reference to the C Programming Language. PRENTICE HALL PTR Englewood Cliffs, NJ 07632THE STANDARD C LIBRARY PJ. Plauger entice Hall P TR Englewood Cliffs, New Jersey 07632Liprary oF Congress Catalog tng-tn-Publicatton Data Prager, Pe Je The Stendare C library / P.J. Plauger. be ee. Includes bibliographical references and tndex. ISBN 0-12-6380%2-0 (casebound?. ~~ ISBN 0-13-131608-8 (pagerbound) 1. C (Computer grogeam language? 1. Title. (0876. 78.C18P583 1991 005. 18°3—de20 er-ste8a CHP Eaorialproduction supetvision: Brendan M. Stewart ‘Manufacturing buyers: Kelly Behr and Susan Broke ©1992 by P J. Pager Published by Prentice Hall PT R Prentice-Hall, ine, EAE A Simon & Schuster Company Englewood Clif, New Jersey 07632 ‘The author and publisher have used their best efforts in preparing this book. These efforts include the development, research, and testing of the programe to determine their effective- ness. The author and publisher make no warranty of any kind, expressed or implied, with regard to these programs or the documentation contained in this book. The author and pub- lisher shall not be liable in any event for incidental or consequential damages in connection with, or arising out of, the furnishing, performance, or use of these programs. All rights reserved. No part of this book may be reproduced, in any form or by any means, without permission in writing of the author. You may use and redistribute the code frag- ments in this book without royalty or fee onfy as part of executable images, and only pro- vided that the following notice is included prominently in the associated documentation and as part of the executable image: Portions of this work are derived from The Standard ¢ Library, copyright (c) 1992 by P.J. Plauger, published by Prentice-Hall, and are used with permission. For additional licensing of the code, see page xii. Printed in the United States of America 20 19 18 17 16 15 4 13:12 WL ISBN O-13-131509-9 Prentice-Hall international (UIQ Limited, London Prentice-Hall of Australia Pty Limited, Sydney Prentice-Hall of Canada Inc, Toronto Prentice-Hall Hispanoamericana, S.A, Mexico Prentice-Hall of India Private Limited, New Debi Prentice Hall of Japan, inc, Tokyo Simon & Schuster Asia Pte. Ltd, Singapore Editora Prentice-Hall do Brasil, Lida, Rio de Janeriofor TanaPERMISSIONS Excerpts from the 180 C Standard, ISO/1EC 9899:1990, reprinted by permission of the Intes- national Standards Organization, Geneva. The complete Standard, and the other ISO stand~ ards referred to in this book, may be purchased from the ISO member bodies or directly from: 180 Central Secretariat Case postale 56 1211 Geneva 20 SWITZERLAND Excerpts from William J. Cody, x. and William Waite, Software Manual forthe Elementary Functions. © 1980, pp. 44, 69, 162, 183, 196, 206, 226, and 246 reprinted by permission of Prentice-Hall, Englewood Cliffs, New Jersey. Excerpts fromPJ. Plauger and Jim Brodie, Stastdard C, reprinted by permission of the authors, Excerpts fromP.J. Plauger, Standard C, monthly column in The C Usets Journal, reprinted by permission of the author. TRADEMARKS Compag SLT/386-205 is a trademark of Compag Computer Corporation. Corel Draw is a trademark of Corel Systems. IBM PC and System/370 are trademarks of IBM Corporation. ‘Macintosh isa trademark of Apple Computer. MS-DOS, and Windows are trademarks of Microsoft Corporation, Multics is a trademark of Honeywell Bull. PDP-11, RSX-1IM, ULTRIX, and VAX are trademarks of Digital Equipment Corporation. “Turbo C++ isa trademark of Borland, International UNIX is a trademark of AT&T Bell Laboratories. Ventura Publisher is a trademark of Ventura Software Ine. TYPOGRAPHY This book was typeset in Palatino, Avant Garde, and Courier bold by the author using a ‘Compaq SLT /386-208 computer running Ventura Publisher 3.0 and Corel Draw 2.0 under Microsoft Windows 30.Contents Preface The Code Acknowledgments Chapter 0: Introduction Background What the C Standard Says Using the Library implementing the Library Testing the Library References Exercises Chapterl:
Background What the C Standard Says Using
Implementing
Testing
References Exercises Chapter 2:
Background ‘What the C Standard Says Using
Implementing
Testing
References Exercises Chapter 3:
Background What tne C Standard Says Using
Implementing
Testing
References Exercises.Chapter 4:
Background What the C Standard Says Using
Implementing
Testing
References Exercises Chapter5:
Background Whaf the C Standard Says Using
implementing
Testing
References Exercises Chapter6:
Background What the C Standard Says Using
Implementing
Testing
References Exercises Chapter7:
Background What the C Standard Says Using
Implementing
Testing
References Exercises Chapter 8:
Background What the C Standard Says Using
implementing
Testing
References ExercisesChapter9:
Background What the C Standard Says Using
Implementing
Testing
References Exercises Chapter 10:
Background What the C Standard Says Using
Implementing
Testing
References Exercises Chapter 11:
Background What the C Standard Says Using
implementing
Testing
References Exercises Chapter 12:
Background What the C Standard Says Using
implementing
Testing
References Exercises Chapter 13:
Background What the C Standard Says Using
Implementing
Testing
References Exercises 193 193 198 197 203 205 207 210 212 212 212 215 218 27 217 222 223 223 225 225 233 274 325, 327 329 333 344 381 381 384 vii
You might also like
Martin Kalin - Modern C Up and Running
PDF
No ratings yet
Martin Kalin - Modern C Up and Running
371 pages
A Retargetable C Compiler Design and Implementation
PDF
100% (1)
A Retargetable C Compiler Design and Implementation
578 pages
Computer Simulation Techniques: The Definitive Introduction!
PDF
No ratings yet
Computer Simulation Techniques: The Definitive Introduction!
175 pages
The Theory of Parsing Translation and Compiling Volume 1 Parsing
PDF
100% (3)
The Theory of Parsing Translation and Compiling Volume 1 Parsing
562 pages
C Standard Library Tutorial
PDF
No ratings yet
C Standard Library Tutorial
274 pages
Subrata Ray - Fortran 2018 With Parallel Programming (2020, CRC - Chapman & Hall - Taylor & Francis Group) PDF
PDF
No ratings yet
Subrata Ray - Fortran 2018 With Parallel Programming (2020, CRC - Chapman & Hall - Taylor & Francis Group) PDF
683 pages
2015 Book TuringSRevolution
PDF
No ratings yet
2015 Book TuringSRevolution
347 pages
The New C Standard PDF
PDF
No ratings yet
The New C Standard PDF
1,612 pages
Combinatory Logic in Programming
PDF
No ratings yet
Combinatory Logic in Programming
347 pages
C Standard Library Tutorial PDF
PDF
100% (1)
C Standard Library Tutorial PDF
253 pages
Unix System Programming
PDF
100% (1)
Unix System Programming
92 pages
Learning C by Example (2015)
PDF
100% (2)
Learning C by Example (2015)
143 pages
f8742848 00338
PDF
No ratings yet
f8742848 00338
608 pages
Everything Curl
PDF
No ratings yet
Everything Curl
268 pages
ASM - Abstract StateMachines Theory and Applications (Lecture Notes in Computer Science) PDF
PDF
100% (1)
ASM - Abstract StateMachines Theory and Applications (Lecture Notes in Computer Science) PDF
390 pages
Category Theory For Programmers
PDF
100% (7)
Category Theory For Programmers
497 pages
LAPACK Users Guide PDF
PDF
No ratings yet
LAPACK Users Guide PDF
425 pages
Thinking Recursively
PDF
100% (3)
Thinking Recursively
189 pages
C Standard Library PDF
PDF
100% (2)
C Standard Library PDF
274 pages
The Standard C Library
PDF
100% (2)
The Standard C Library
514 pages
PicoLisp by Example
PDF
100% (1)
PicoLisp by Example
1,400 pages
Pilers - And.interpreters Brown
PDF
83% (6)
Pilers - And.interpreters Brown
282 pages
C Prog
PDF
No ratings yet
C Prog
88 pages
Using C Int Unix System
PDF
No ratings yet
Using C Int Unix System
242 pages
Mortenson, Michael E. - Mathematics For Computer Graphics Applications PDF
PDF
100% (2)
Mortenson, Michael E. - Mathematics For Computer Graphics Applications PDF
368 pages
Game Physics Pearls
PDF
100% (6)
Game Physics Pearls
338 pages
Science of Programming
PDF
No ratings yet
Science of Programming
379 pages
LISP in Small Pieces PDF
PDF
No ratings yet
LISP in Small Pieces PDF
532 pages
C Library
PDF
No ratings yet
C Library
172 pages
Data Structures Algorithms and Software Principles in C
PDF
89% (9)
Data Structures Algorithms and Software Principles in C
774 pages
Algorithms For Playing and Solving Games
PDF
No ratings yet
Algorithms For Playing and Solving Games
39 pages
Unit 1 Usp
PDF
No ratings yet
Unit 1 Usp
42 pages
PC Intern - Encyclopedia of System Programming PDF
PDF
No ratings yet
PC Intern - Encyclopedia of System Programming PDF
1,009 pages
Pure Script Book
PDF
100% (1)
Pure Script Book
232 pages
Knuth - All Questions Answered PDF
PDF
No ratings yet
Knuth - All Questions Answered PDF
7 pages
ARM Architecture
PDF
No ratings yet
ARM Architecture
26 pages
Amd x64 Architecture Volume 1
PDF
No ratings yet
Amd x64 Architecture Volume 1
400 pages
Discrete Mathematics 7th Edition
PDF
100% (1)
Discrete Mathematics 7th Edition
785 pages
Implementing Wire Protocols With Boost Fusion - Thomas Rodgers - CppCon 2014
PDF
100% (1)
Implementing Wire Protocols With Boost Fusion - Thomas Rodgers - CppCon 2014
82 pages
C Standard Library Tutorial PDF
PDF
No ratings yet
C Standard Library Tutorial PDF
25 pages
Brian J. Gough, Richard M. Stallman - An Introduction To GCC-Network Theory Ltd. (2004)
PDF
No ratings yet
Brian J. Gough, Richard M. Stallman - An Introduction To GCC-Network Theory Ltd. (2004)
125 pages
C 90 C
PDF
No ratings yet
C 90 C
269 pages
Json
PDF
100% (1)
Json
71 pages
Language Reference: IBM XL C Enterprise Edition V8.0 For AIX
PDF
No ratings yet
Language Reference: IBM XL C Enterprise Edition V8.0 For AIX
226 pages
Full Analyse of JULIA
PDF
No ratings yet
Full Analyse of JULIA
19 pages
Groff
PDF
No ratings yet
Groff
268 pages
Backtracking Algorithms
PDF
100% (2)
Backtracking Algorithms
42 pages
Introduction To Algorithms: A Creative Approach
PDF
0% (6)
Introduction To Algorithms: A Creative Approach
7 pages
Graph Algorithms
PDF
No ratings yet
Graph Algorithms
45 pages
C Programming - Data Structures and Algorithms
PDF
No ratings yet
C Programming - Data Structures and Algorithms
167 pages
Algorithms
PDF
100% (1)
Algorithms
145 pages
Let Us C Y Kanitkar 01 - First Few Pages
PDF
No ratings yet
Let Us C Y Kanitkar 01 - First Few Pages
7 pages
Principles of Compiler Design - Tutorial 9
PDF
100% (1)
Principles of Compiler Design - Tutorial 9
7 pages
Makefile
PDF
100% (1)
Makefile
7 pages
Standard Library: 2 Philosophies
PDF
No ratings yet
Standard Library: 2 Philosophies
3 pages
LISP in Small Pieces
PDF
25% (4)
LISP in Small Pieces
11 pages
Programming Pearls
PDF
No ratings yet
Programming Pearls
4 pages
Lojban Thesaurus
PDF
No ratings yet
Lojban Thesaurus
18 pages
LaTeX Help Sheet
PDF
100% (50)
LaTeX Help Sheet
2 pages
C Standard Library: Navigation Search Iso C Headers Library Input/output String Programming Language C
PDF
No ratings yet
C Standard Library: Navigation Search Iso C Headers Library Input/output String Programming Language C
3 pages