faceskerop.blogg.se

Pj plauger standard c library
Pj plauger standard c library













pj plauger standard c library
  1. PJ PLAUGER STANDARD C LIBRARY FULL
  2. PJ PLAUGER STANDARD C LIBRARY CODE

(Note: updated several sections based on feedback from Lobste.rs, HN, and Reddit. The focus is C89, with comparisons to the later standards C99 and C11 when relevant. Some of it may be old news to you, and conversely I may have omitted something that seemed basic to me but would have been useful to mention. It’s just things that were new or interesting to me. This article is not a comprehensive explanation of the standard by any means. I can see why these were historically the most frequently asked questions.

PJ PLAUGER STANDARD C LIBRARY CODE

Lists real code that caused vulnerabilities. Illustrates potential insecurity with, among other things, the standard library.

pj plauger standard c library

  • “The CERT C Coding Standard” by Robert C.
  • Great for illustrating the design decisions of the language as it relates to diverse hardware. He provides early history of each standard library function, as well as some functions that are now defunct. Written after ANSI C was standardized, but early enough where it wasn’t fully adopted. This is helpful for understanding C semantics. This is the C99 standard itself (rather than C89 like Plauger’s book), and it includes an entire first half devoted to the rationale behind language and library choices.
  • “The C Standard: Incorporating Technical Corrigendum 1” by The British Standards Institution (ISBN 978-0470845738).
  • By cross-referencing the following books, asking questions on IRC, and browsing StackOverflow and the archives, I found satisfactory answers. The author was on the X3J11 committee that defined ANSI C.Īs I worked through the book – trying first to write the examples myself, then comparing his code to mine, and finally running the examples – I kept notes with questions about portability, rationale, and C behavior.

    pj plauger standard c library

    PJ PLAUGER STANDARD C LIBRARY FULL

    It has a chapter for each header, with background information, an excerpt from the C89 standard, tips on use, and full implemention with tests. Plauger’s book The Standard C Library (ISBN 978-0131315099) where he examines an implementation of all the functions. After diving into the C language through K&R, and then studying portability (see C Portability Lessons from Weird Machines), my next challenge was to take a systematic look at the standard library.















    Pj plauger standard c library