C in a Nutshell: The Definitive Reference
Peter Prinz, Tony Crawford
Format: PDF / Kindle (mobi) / ePub
The new edition of this classic O’Reilly reference provides clear, detailed explanations of every feature in the C language and runtime library, including multithreading, type-generic macros, and library functions that are new in the 2011 C standard (C11). If you want to understand the effects of an unfamiliar function, and how the standard library requires it to behave, you’ll find it here, along with a typical example.
Ideal for experienced C and C++ programmers, this book also includes popular tools in the GNU software collection. You’ll learn how to build C programs with GNU Make, compile executable programs from C source code, and test and debug your programs with the GNU debugger.
In three sections, this authoritative book covers:
- C language concepts and language elements, with separate chapters on types, statements, pointers, memory management, I/O, and more
- The C standard library, including an overview of standard headers and a detailed function reference
- Basic C programming tools in the GNU software collection, with instructions on how use them with the Eclipse IDE
6.83 0.25 6.83 372.62 379.44 See Also cosh(), tanh(), asinh(), csinh(), casinh() Name snprintf Synopsis Stores formatted output in a string buffer #include
however, then GDB stops the program only if the specified condition is true. You can specify a break condition when you set a breakpoint by appending the keyword if to a normal break command: break [position] ifexpression In this syntax, position can be a function name or a line number, with or without a filename, just as for an unconditional breakpoint (see the earlier subsection "Setting and displaying breakpoints"). The condition can be any C expression with a scalar type, and may include
atexit() function, Error Messages atof() function, Error Messages atoi() function, Error Messages auto (storage class specifier), Storage Class Specifiers automatic (storage duration), Automatic Storage Duration automatic variables, Automatic Storage Duration automatic variables (in make), The Automatic Variables B \b (backspace) character, Character Sets, Escape Sequences B language, Characteristics of C base eight (octal) notation, Integer Constants basic character set,
Modifying and Comparing Pointers reading and modifying objects, Operations with Pointers simple assignment operands, Assignment Operators to allocated memory block, Characteristics of Allocated Memory to arrays, Pointers to Arrays and Arrays of Pointers to functions, Pointers to Functions to incomplete structure types, Incomplete Structure Types to pointers, Using Pointers to Read and Modify Objects to qualified object types, Pointers to qualified object types to strings, Strings to
have to be converted into newline characters when reading text files , as on Windows systems for instance, where the end-of-line indicator is a sequence of two control characters, \r (carriage return) and \n (newline). Similarly, the control character ^Z (character code 26) in a text stream on Windows indicates the end of the stream. As the programmer, you generally do not have to worry about the necessary adaptations, because they are performed automatically by the I/O functions in the standard