Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “The execve()
system call, after several iterations where it leaves the confines of userspace, will end up in the Linux kernel and create a linux_binprm
structure.”
A block of code is set as follows:
#include <iostream> typedef struct S { int a; } S, const *CSP; int main() { S s1; s1.a = 1; CSP ps1 = &s1; std::cout << ps1->a; }
Any command-line input or output is written as follows:
$ g++ main.cpp a.cpp b.cpp -o test $ g++ main.cpp b.cpp a.cpp -o test
Tips or important notes
Appear like this.