C Programming in Linux
David Haskins
Download free books at
David Haskins
C Programming in Linux
Download free eBooks at bookboon.com
2
C Programming in Linux
2nd edition
© 2013 David Haskins & bookboon.com
ISBN 978-87-403-0543-2
Download free eBooks at bookboon.com
3
C Programming in Linux
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 ininite 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 beneit from international
career paths. Implement sustainable ideas in close
cooperation with other specialists and contribute to
inluencing our future. Come and join us in reinventing
light every day.
Light is OSRAM
Download free eBooks at bookboon.com
4
Click on the ad to read more
C Programming in Linux
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 low 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 low conclusion
56
5
Database handling with MySQL
57
5.1
On not reinventing the wheel
57
5.2
MySQL C API
57
360°
thinking
.
Discover the truth at www.deloitte.ca/careers
© Deloitte & Touche LLP and affiliated entities.
Download free eBooks at bookboon.com
5
Click on the ad to read more