主程式的範例如下
/*
 * Subject: count lines, words and bytes in a file
 * Author: Shiuh-Sheng Yu
 * FileName: wc.c
 * Date:     6/3/1999
 * Last Update: 6/3/1998
 */
#include <stdio.h>
#include <ctype.h>
void wc(char *fname) {
    int inword=0, lcount=0, wcount=0, bcount=0;
    FILE *f;
    char c;
    f = fopen(fname,"r"); // open read only file
    // skipped. use fgetc(f) to read in a byte
}
int main(int argc, char *argv[]) {
    int i;
    for (i=1; i < argc; i++) {
        wc(argv[i]);
    }
}
注意你的程式必須有詳細的註解, 並且以內縮四個空格的方式 將你的程式對齊.