summaryrefslogtreecommitdiff
path: root/reference/C/EXAMPLES/examples.html
blob: b86f7ee466d4a8059793ec62d0e1f214a61a4e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <meta name="GENERATOR" content="Mozilla/4.5 [en] (X11; I; Linux 2.0.36 i586) [Netscape]">
   <title>C Programming Examples</title>
<script language="JavaScript">
</script>
</head>
<body bgcolor="#FFFFCC">

<hr>
<center>
<h1>
C Programming Examples</h1></center>

<hr>
<p>All these examples have been tested on a PC running Linux and using
the 'gcc' compiler. You can extract the programs with the 'save' option
under 'file' and compile with your own compiler.
<dl compact>
<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
<a href="first.c">Your first C program.</a></dd>

<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
<a href="if.c">if.</a></dd>

<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
<a href="while.c">while.</a></dd>

<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
<a href="do.c">do.</a></dd>

<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
<a href="for1.c">for </a>example 1.</dd>

<br><a href="for2.c">for </a>A more advanced example.
<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
<a href="switch.c">switch.</a></dd>

<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
<a href="function.c">function.</a></dd>

<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
<a href="global.c">Global and local variables.</a></dd>

<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
<a href="inc_dec.c">Increment &amp; decrement.</a></dd>

<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
Pass <a href="command_line.c">command line</a> arguments.</dd>

<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
<a href="10to1.c">Print from 10 to 1 - three examples.</a></dd>

<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
<a href="read_file.c">Read a file - version 1.</a></dd>

<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
<a href="strcpy.c">manipulate strings.</a></dd>

<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
<a href="password.c">Using 'curses' to read a password.</a></dd>

<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
<a href="../X_EXAMPLES/Xref.html">Programs requiring X.</a> Unix users
only.&nbsp;
<hr></dd>

<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
<a href="">Index of all example programs.</a></dd>

<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
<a href="../CONTRIB/OR_USING_C/">O'Reillys' Using C examples.</a></dd>

<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
<a href="../CONTRIB/OR_PRACTICAL_C/">O'Reillys' Practical C examples.</a></dd>

<dt>
<img SRC="whiteball.gif" ALT="o" ></dt>

<dd>
<a href="../CONTRIB/SNIP/">Bob Stouts 'Snippets'.</a></dd>
</dl>

<hr>
<center><table BORDER=2 WIDTH="80%" BGCOLOR="#FFFFF0" >
<tr ALIGN=CENTER>
<td WIDTH="25%"><a href="../cref.html">Top</a></td>

<td WIDTH="25%"><a href="../master_index.html">Master
Index</a></td>

<td WIDTH="25%"><a href="../SYNTAX/keywords.html">Keywords</a></td>

<td WIDTH="25%"><a href="../FUNCTIONS/funcref.htm">Functions</a></td>
</tr>
</table></center>

<p>
<hr>
<address>
Martin Leslie</address>

</body>
</html>