### Question 20.3

How do I access command-line arguments?

They are pointed to by the `argv` array with which `main()` is called.

References: K&R1 Sec. 5.11 pp. 110-114
K&R2 Sec. 5.10 pp. 114-118
ANSI Sec. 2.1.2.2.1
ISO Sec. 5.1.2.2.1
H&S Sec. 20.1 p. 416
PCS Sec. 5.6 pp. 81-2, Sec. 11 p. 159, pp. 339-40 Appendix F
Schumacher, ed., Software Solutions in C Sec. 4 pp. 75-85

Read sequentially: prev next up top

This page by Steve Summit // Copyright 1995 // mail feedback