C Programming in Linux [Haskins 2009].pdf

(2305 KB) Pobierz
David Haskins
C Programming in Linux
Download free ebooks at bookboon.com
2
C Programming in Linux
© 2009 David Haskins & Ventus Publishing ApS
ISBN 978-87-7681-472-4
Download free ebooks at bookboon.com
3
C Programming in Linux
Contents
Contents
About the author, David Haskins
Introduction
Setting up your System
1.
1.1
1.2
1.3
1.4
1.5
2.
2.1
2.2
2.3
2.4
2.5
Chapter One: Hello World
Hello Program 1
Hello Program 2
Hello Program 3
Hello Program 4
Hello World conclusion
Data and Memory
Simple data types?
What is a string?
What can a string “mean”
Parsing a string
Data and Memory – conclusion
7
8
11
13
13
14
17
19
22
23
23
27
28
31
34
Fast-track
your career
Please click the advert
Masters in Management
Stand out from the crowd
Designed for graduates with less than one year of full-time postgraduate work
experience, London Business School’s Masters in Management will expand your
thinking and provide you with the foundations for a successful career in business.
The programme is developed in consultation with recruiters to provide you with
the key skills that top employers demand. Through 11 months of full-time study,
you will gain the business knowledge and capabilities to increase your career
choices and stand out from the crowd.
London
Business School
Regent’s Park
London NW1 4SA
United Kingdom
Tel +44 (0)20 7000 7573
Email mim@london.edu
www.london.edu/mim/
Applications are now open for entry in September 2011.
For more information visit
www.london.edu/mim/
email mim@london.edu or call +44 (0)20 7000 7573
Download free ebooks at bookboon.com
4
C Programming in Linux
Contents
3.
3.1
3.2
3.3
3.4
3.5
4.
4.1
4.2
4.3
5.
5.1
5.2
6.
6.1
6.2
6.3
Functions, pointers and structures
Functions
Library Functions
A short library function reference
Data Structures
Functions, pointers and structures – conclusion
Logic, loops and flow control
Syntax of C Flow of control
Controlling what happens and in which order
Logic, loops and flow conclusion
Database handling with MySQL
On not reinventing the wheel
MySQL C API
Graphics with GD library
Generating binary content
Using TrueType Fonts
GD function reference
35
35
38
39
41
44
46
46
47
57
58
58
58
63
63
66
68
Please click the advert
You’re full of
energy
and ideas
. And that’s
just what we are looking for.
Looking for a career where your ideas could really make a difference? UBS’s
Graduate Programme and internships are a chance for you to experience
for yourself what it’s like to be part of a global team that rewards your input
and believes in succeeding together.
Wherever you are in your academic career, make your future a part of ours
by visiting www.ubs.com/graduates.
www.ubs.com/graduates
Download free ebooks at bookboon.com
5
© UBS 2010. All rights reserved.
Zgłoś jeśli naruszono regulamin