Presentation is loading. Please wait.

Presentation is loading. Please wait.

ECE 103 Engineering Programming Chapter 15 C Standard Library Herbert G. Mayer, PSU CS Status 7/19/2015 Initial content copied verbatim from ECE 103 material.

Similar presentations


Presentation on theme: "ECE 103 Engineering Programming Chapter 15 C Standard Library Herbert G. Mayer, PSU CS Status 7/19/2015 Initial content copied verbatim from ECE 103 material."— Presentation transcript:

1 ECE 103 Engineering Programming Chapter 15 C Standard Library Herbert G. Mayer, PSU CS Status 7/19/2015 Initial content copied verbatim from ECE 103 material developed by Professor Phillip Wong @ PSU ECE

2 1 C Standard Library C provides standard functions by using external code libraries Before using a library function, its header file must be included (e.g., #include ) Once a header file is included, all of the definitions, functions, and macros in that library become available to your C source

3 2 (Std: Blank=1989/1990 Standard, NA1=Normative Addendum 1, C99=1999 Standard) Header NameStdDescription Contains assert macro for program debugging (do a “man assert” lower case in unix!) C99For manipulating complex numbers For character type conversion, upper/lowercase conversion Constants defining error codes C99For controlling floating-point environment Constants defining Implementation-specific properties of floating- point types C99For conversion between integer types NA1For operations involving ISO 646 character sets Constants defining Implementation-specific properties of integer types Location constants Contains common mathematics functions Contains setjmp and longjmp macros for non-local exits

4 3 (Std: Blank=1989/1990 Standard, NA1=Normative Addendum 1, C99=1999 Standard) Header NameStdDescription For controlling exceptions For handling functions with varying number of arguments C99For accessing boolean data type C99For defining various integer data types Contains various definitions and macros Contains console I/O and file I/O functions Misc (e.g., conversion, random numbers, dynamic memory) For manipulating strings C99Contains type-generic mathematics functions For converting time and date formats NA1For manipulating wide characters (e.g., Unicode) NA1For classifying wide characters

5 4 Online Resource Searchable online C /C++ library reference: http://www.cplusplus.com/reference/clibrary


Download ppt "ECE 103 Engineering Programming Chapter 15 C Standard Library Herbert G. Mayer, PSU CS Status 7/19/2015 Initial content copied verbatim from ECE 103 material."

Similar presentations


Ads by Google