ECE 2524 - Program Structure

ECE 2524

Introduction to Unix for Engineers

Program Structure

Last modified

<<*>>=
<<include library headers>>

<<include local headers>>

<<main>>
@
<<main>>=
int main(int argc, char *argv[]) {
    <<variable declarations>>

    <<command line option parsing>>

    <<main loop>>

    <<cleanup and exit>>
}
@