Download free eBooks at bookboon.com
Click on the ad to read more C Programming in Linux
4
Contents
Contents
About the author, David Haskins 7
Introduction 9
Setting up your System 12
1 Hello World 14
1.1 Hello Program 1 14
1.2 Hello Program 2 15
1.3 Hello Program 3 18
1.4 Hello Program 4 20
1.5 Hello World conclusion 23
2 Data and Memory 24
2.1 Simple data types? 24
2.2 What is a string? 28
www.sylvania.com
We do not reinvent the wheel we reinvent light.
Fascinating lighting offers an infinite spectrum of possibilities: Innovative technologies and new markets provide both opportunities and challenges.
An environment in which your expertise is in high demand. Enjoy the supportive working atmosphere within our global group and benefit from international career paths. Implement sustainable ideas in close cooperation with other specialists and contribute to influencing our future. Come and join us in reinventing light every day.
Light is OSRAM
Download free eBooks at bookboon.com
Click on the ad to read more C Programming in Linux
5
Contents
2.3 What can a string “mean” 29
2.4 Parsing a string 32
2.5 Data and Memory – conclusion 34
3 Functions, pointers and structures 36
3.1 Functions 36
3.2 Library Functions 38
3.3 A short library function reference 39
3.4 Data Structures 41
3.5 Functions, pointers and structures – conclusion 44
4 Logic, loops and flow control 45
4.1 Syntax of C Flow of control 45
4.2 Controlling what happens and in which order 46
4.3 Logic, loops and flow conclusion 56
5 Database handling with MySQL 57
5.1 On not reinventing the wheel 57
5.2 MySQL C API 57
© Deloitte & Touche LLP and affiliated entities.
360° thinking .
Discover the truth at www.deloitte.ca/careers
© Deloitte & Touche LLP and affiliated entities.
360° thinking .
Discover the truth at www.deloitte.ca/careers
© Deloitte & Touche LLP and affiliated entities.
360° thinking .
Discover the truth at www.deloitte.ca/careers
© Deloitte & Touche LLP and affiliated entities.
360° thinking .
Discover the truth at www.deloitte.ca/careers
Download free eBooks at bookboon.com
Click on the ad to read more C Programming in Linux
6
Contents
6 Graphics with GD library 61
6.1 Generating binary content 61
6.2 Using TrueType Fonts 63
6.3 GD function reference 65
7 Apache C modules 69
7.1 Safer C web applications 69
7.2 Adding some functionality 72
7.3 Apache Modules Conclusion 73
8 The Ghost project 74
8.1 A PHP web site generator project 74
12 Conclusion 80
We will turn your CV into an opportunity of a lifetime
Do you like cars? Would you like to be a part of a successful brand?
We will appreciate and reward both your enthusiasm and talent.
Send us your CV. You will be surprised where it can take you.
Send us your CV on www.employerforlife.com