------------------------------------------------------------------------------
MC logo
Plain C Arg Lister
[^] CSc 220 Home
------------------------------------------------------------------------------
[Introduction] [Boolean and Control] [Functions] [Arrays and Pointers] [Dynamic Arrays] [Array Errors] [Command Array] [Standard Containers] [Structs and Classes] [Automatic Pointer] [Multi-File Programs] [Copying Objects] [Templates] [Inheritance] [Plain C I/O] [Type Odds And Ends] [Plain C Strings] [File I/O]
[C Strings] [More C Strings] [Plain C Arg Lister] [Fancy Plain C Arg Lister (With Pointers)] [Simple String Sort]
listargs.c
/*
 * This program lists the command line arguments.
 */
#include <stdio.h>

int main(int argc, char **argv)
{
        int m;

        for(m = 0; m < argc; ++m)
                printf("%s\n", argv[m]);
}