DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Introduction to programming in standard C and C++

Modular programming in C

C is a language that lends itself readily to modular programming. Because the functions of a C program can be compiled separately, the next logical step is to put each function, or group of related functions, in its own file. Each file can then be treated as a component, or a module, of your program.

``C language compilers'' describes how to write C code so that the modules of your program can communicate with each other. Coding a program in small pieces eases the job of making changes because you only need to recompile the revised modules. It also makes it easier to build programs from code you have written already. As you write functions for one program, you will find that many can be called into another.


Next topic: C++ language
Previous topic: C language

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005