Create bookmark
C in a Nutshell
Notes
Please login to add notes
- Table of Contents
- + Preface
- I
-
+
Language Basics
-
+
Types
- + Literals
- + Type Conversions
- + Expressions and Operators
-
+
Statements
-
+
Functions
-
+
Arrays
-
+
Pointers
- + Structures, Unions, and Bit-Fields
-
+
Declarations
-
+
Dynamic Memory Management
-
+
Input and Output
-
+
Preprocessing Directives
- II
- + The Standard Headers
-
+
Functions at a Glance
- Input and Output
-
+
Mathematical Functions
- + Character Classification and Conversion
- String Processing
- Multibyte Characters
- Converting Between Numbers and Strings
- Searching and Sorting
- Memory Block Handling
- Dynamic Memory Management
- Date and Time
- + Process Control
- Internationalization
- Nonlocal Jumps
- Debugging
- Error Messages
-
+
Standard Library Functions
- _Exit
- abort
- abs
- acos
- acosh
- asctime
- asin
- asinh
- assert
- atan
- atan2
- atanh
- atexit
- atof
- atoi
- atol, atoll
- bsearch
- btowc
- cabs
- cacos
- cacosh
- calloc
- carg
- casin
- casinh
- catan
- catanh
- cbrt
- ccos
- ccosh
- ceil
- cexp
- cimag
- clearerr
- clock
- conj
- copysign
- cos
- cosh
- cpow
- cproj
- creal
- csin
- csinh
- csqrt
- ctan
- ctanh
- ctime
- difftime
- div
- erf
- erfc
- exit
- exp
- exp2
- expm1
- fabs
- fclose
- fdim
- feclearexcept
- fegetenv
- fegetexceptflag
- fegetround
- feholdexcept
- feof
- feraiseexcept
- ferror
- fesetenv
- fesetexceptflag
- fesetround
- fetestexcept
- feupdateenv
- fflush
- fgetc
- fgetpos
- fgets
- fgetwc
- fgetws
- floor
- fma
- fmax
- fmin
- fmod
- fopen
- fpclassify
- fprintf
- fputc
- fputs
- fputwc
- fputws
- fread
- free
- freopen
- frexp
- fscanf
- fseek
- fsetpos
- ftell
- fwide
- fwprintf
- fwscanf
- fwrite
- getc
- getchar
- getenv
- gets
- getwc
- getwchar
- gmtime
- hypot
- ilogb
- imaxabs
- imaxdiv
- isalnum
- isalpha
- isblank
- iscntrl
- isdigit
- isfinite
- isgraph
- isgreater, isgreaterequal
- isinf
- isless, islessequal, islessgreater
- islower
- isnan
- isnormal
- isprint
- ispunct
- isspace
- isunordered
- isupper
- iswalnum
- iswalpha
- iswblank
- iswcntrl
- iswctype
- iswdigit
- iswgraph
- iswlower
- iswprint
- iswpunct
- iswspace
- iswupper
- iswxdigit
- isxdigit
- labs
- ldexp
- ldiv
- llabs
- lldiv
- llrint
- llround
- localeconv
- localtime
- log
- log10
- log1p
- log2
- logb
- longjmp
- lrint
- lround
- malloc
- mblen
- mbrlen
- mbrtowc
- mbsinit
- mbsrtowcs
- mbstowcs
- mbtowc
- memchr
- memcmp
- memcpy
- memmove
- memset
- mktime
- modf
- nearbyint
- nextafter
- nexttoward
- perror
- pow
- printf
- putc
- putchar
- puts
- putwc
- putwchar
- qsort
- raise
- rand
- realloc
- remainder
- remove
- remquo
- rename
- rewind
- rint
- round
- scalbln, scalbn
- scanf
- setbuf
- setjmp
- setlocale
- setvbuf
- signal
- signbit
- sin
- sinh
- snprintf
- sprintf
- sqrt
- srand
- sscanf
- strcat
- strchr
- strcmp
- strcoll
- strcpy
- strcspn
- strerror
- strftime
- strlen
- strncat
- strncmp
- strncpy
- strpbrk
- strrchr
- strspn
- strstr
- strtod, strtof, strtold
- strtoimax
- strtok
- strtol, strtoll
- strtoul, strtoull
- strtoumax
- strxfrm
- swprintf
- swscanf
- system
- tan
- tanh
- time
- tmpfile
- tmpnam
- tolower
- toupper
- towctrans
- towlower
- towupper
- trunc
- ungetc
- ungetwc
- va_arg, va_copy, va_end, va_start
- vfprintf, vprintf, vsnprintf, vsprintf
- vfscanf, vscanf, vsscanf
- vfwprintf, vswprintf, vwprintf
- vfwscanf, vswscanf, vwscanf
- wcrtomb
- wcscat
- wcschr
- wcscmp
- wcscoll
- wcscpy
- wcscspn
- wcsftime
- wcslen
- wcsncat
- wcsncmp
- wcsncpy
- wcspbrk
- wcsrchr
- wcsrtombs
- wcsspn
- wcsstr
- wcstod, wcstof, wcstold
- wcstoimax
- wcstok
- wcstol, wcstoll
- wcstold
- wcstoll
- wcstombs
- wcstoul, wcstoull
- wcstoumax
- wcsxfrm
- wctob
- wctomb
- wctrans
- wctype
- wmemchr
- wmemcmp
- wmemcpy
- wmemmove
- wmemset
- wprintf
- wscanf
- III
- + Compiling with GCC
-
+
Using make to Build C Programs
-
+
Debugging C Programs with GDB
- Installing GDB
- + A Sample Debugging Session
- + Starting GDB
-
+
Using GDB Commands
- Command Completion
- Displaying Help for Commands
- + Status Information
- Running a Program in the Debugger
- Displaying Source Code
- + Working with Breakpoints
- Resuming Execution After a Break
- + Analyzing the Stack
- + Displaying Data
- Watchpoints: Observing Operations on Variables
- Analyzing Core Files in GDB
- Index
Learning a language--any language--involves a process wherein you learn to rely less and less on instruction and more increasingly on the aspects of the language you've mastered. Whether you're learning French, Java, or C, at some point you'll set aside the tutorial and attempt to converse on your own. It's not necessary to know every subtle facet of French in order to speak it well, especially if there's a good dictionary available. Likewise, C programmers don't need to memorize every detail of C in order to write good programs. What they need instead is a reliable, comprehensive reference that they can keep nearby. C in a Nutshell is that reference.
This long-awaited book is a complete reference to the C programming language and C runtime library. Its purpose is to serve as a convenient, reliable companion in your day-to-day work as a C programmer. C in a Nutshell covers virtually everything you need to program in C, describing all the elements of the language and illustrating their use with numerous examples.
The book is divided into three distinct parts. The first part is a fast-paced description, reminiscent of the classic Kernighan & Ritchie text on which many C programmers cut their teeth. It focuses specifically on the C language and preprocessor directives, including extensions introduced to the ANSI standard in 1999. These topics and others are covered:
Numeric constants
Implicit and explicit type conversions
Expressions and operators
Functions
Fixed-length and variable-length arrays
Pointers
Dynamic memory management
Input and output
The second part of the book is a comprehensive reference to the C runtime library; it includes an overview of the contents of the standard headers and a description of each standard library function. Part III provides the necessary knowledge of the C programmer's basic tools: the compiler, the make utility, and the debugger. The tools described here are those in the GNU software collection.<
p>
C in a Nutshell is the perfect companion to K&R, and destined to be the most reached-for reference on your desk.
Test the closed alpha on paperc.com
Book Details
Authors
Categories
Computers > Programming Languages > C
Publishers
Publication year : 2007
License: All rights reserved ©
Times read: 1,225

