C Standard Library

Jack Purdum, Timothy C. Leslie

Publisher: Que, 1987, 437 pages

ISBN: 0-88022-279-4

Keywords: Programming

Last modified: April 9, 2021, 10:36 p.m.

C Standard Library helps you understand each of the library functions in the proposed American National Standards Institute (ANSI) X3J11 standard for the C programming language. This book also covers additional functions from AT&T® UNIX System V (SYSV) standard library. Using C Standard Library, you will

  • Learn what each library function does and how to use it in your programs
  • See how each function is used in a sample program
  • Avoid errors that are often made with C standard library functions
  • Understand the ANSI enhancements to the C language, such as prototyping, that affect the new library

Arranged by function use, Chapters 4 through 9 cover converter, string processing, math, input/output, utility, and time functions. To help you find a function easily, each chapter presents functions in alphabetical order. A special function index lists all the functions according to name and task.

Enhance your knowledge, skill, and use of the library functions in the proposed ANSI standard and SYSV with Que's C Standard Library.

  1. Introduction to C Standard Library
    • American National Standards Institute (ANSI) and X3J11
    • UNIX System V and X3J11
    • Why the Standard Library Is Important
    • The Purpose of This Book
    • The Reader of This Book
    • Some Common Questions Asked about the Standard Library
      • How many functions Are in the Standard Library?
      • Is a Function Implemented as a Macro Different from a Function Call?
      • Does It Matter What We Call Our Own Functions?
      • Why Doesn't My Square Root Routine Work Properly?
      • I Made the Previous Correction, and It Still Doesn't Work. Why?
      • Is there a Header File That Gives the Prototypes for the Standard Library Functions?
      • Is There an Important Difference between a Data Declaration and a Data Definition?
      • Are There Any Tips for Remembering the Order of Arguments for Standard Library Function Calls?
    • Using This Book
    • Some Closing Thoughts
  2. Summary of the ANSI Language Enhancements
    • Prototyping
      • Prototyping with Identifiers
      • Data Types and Conversions with Prototypes
      • Other Prototypes
      • Creating Your Own Prototypes
    • enum Data Type
    • const and volative
    • The Terminology of ANSI
    • Transition Problems
  3. Standard C Library Header Files
    • What is a Header File?
      • The Difference between a Library Function and a Macro
      • Forcing Functions over Macros
      • Using #include
    • ANSI Standard Header Files
      • assert.h
      • ctype.h
      • errno.h
      • fcntl.h
      • float.h
      • limits.h
      • locale.h
      • malloc.h
      • math.h
      • memory.h
      • search.h
      • setjmp.h
      • signal.h
      • stdarg.h
      • varargs.h
      • stddef.h
      • stdio.h
      • stdlib.h
      • string.h
      • time.h
      • values.h
      • varargs.h
  4. Converter Functions
    • atoi()
    • atol()
    • atof()
    • strtod()
    • strtol()
    • strtoul()
  5. String and Character Operations
    • isalnum()
    • isalpha()
    • isascii()
    • iscntrl()
    • isdigit()
    • isgraph()
    • islower()
    • isprint()
    • ispunct()
    • isspace()
    • isupper()
    • isxdigit()
    • tolower()
    • memcpy()
    • memmove()
    • strcpy()
    • strncpy()
    • strcat()
    • strncat()
    • memcmp()
    • strcmp()
    • strncmp()
    • strcoll()
    • strxfrm()
    • memchr()
    • strchr()
    • strcspn()
    • strpbrk()
    • strrchr()
    • strspn()
    • strstr()
    • strtok()
    • memset()
    • strlen()
    • strerror()
  6. Math Functions
    • ANSI versus SYSV
    • acos()
    • asin()
    • atan()
    • atan2()
    • ceil()
    • cos()
    • cosh()
    • exp()
    • fabs()
    • floor()
    • fmod()
    • frexp()
    • ldexp()
    • log()
    • log10()
    • modf()
    • pow()
    • rand()
    • srand()
    • sin()
    • sinh()
    • sqrt()
    • tan()
    • tanh()
  7. Input/Output Functions
    • UNIX versus Other Operating Systems
    • chdir()
    • clearerr()
    • feof()
    • ferror()
    • fileno()
    • close()
    • creat()
    • fclose()
    • fflush()
    • fgetpos()
    • fsetpos()
    • fopen()
    • freopen()
    • fdopen()
    • fprintf()
    • printf()
    • sprintf()
    • fputc()
    • putc()
    • putchar()
    • putw()
    • fputs()
    • fread()
    • fwrite()
    • fscanf()
    • scanf()
    • sscanf()
    • fseek()
    • ftell()
    • rewind()
    • getc()
    • getchar()
    • fgetc()
    • getw()
    • getcwd()
    • gets()
    • fgets()
    • lseek()
    • open()
    • perror()
    • read()
    • remove()
    • rename()
    • unlink()
    • setbuf()
    • setvbuf()
    • tmpfile()
    • tmpnam()
    • ungetch()
    • vfprintf()
    • vprintf()
    • vsprintf()
    • write()
  8. Miscellaneous Utility Functions
    • abort()
    • abs()
    • assert()
    • atexit()
    • bsearch()
    • calloc()
    • malloc()
    • realloc()
    • free()
    • div()
    • ldiv()
    • exit()
    • getenv()
    • getopt()
    • hcreate()
    • hdestroy()
    • hsearch()
    • labs()
    • lsearch()
    • lfind()
    • offsetof()
    • qsort()
    • raise()
    • setjmp()
    • longjmp()
    • signal()
    • system()
    • tdelete()
    • tfind()
    • tsearch()
    • twalk()
  9. Time and Internationalization Functions
    • Time versus Time
    • asctime()
    • clock()
    • ctime()
    • difftime()
    • gmtime()
    • localtime()
    • mktime()
    • setlocale())
    • strftime()
    • time()
  • Appendix A

Reviews

C Standard Library

Reviewed by Roland Buresund

Disappointing *** (3 out of 10)

Last modified: May 21, 2007, 2:56 a.m.

This is from the time when the C library was everything except standard. Today, it can be used as landfill material.

Comments

There are currently no comments

New Comment

required

required (not published)

optional

required

captcha

required