repo.or.cz
/
lcapit-junk-code.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Introduce examples dir
[lcapit-junk-code.git]
/
examples
/
C
/
argv.c
blob
03df178f5607a77abf9fe6e4ba9b48b5b782dceb
1
/*
2
* Print all the command-line arguments
3
*/
4
#include <stdio.h>
5
6
int
main
(
int
argc
,
char
*
argv
[])
7
{
8
int
i
;
9
10
for
(
i
=
0
;
i
<
argc
;
i
++)
11
printf
(
"argv[%d]: %s
\n
"
,
i
,
argv
[
i
]);
12
13
return
0
;
14
}