Home Segments Index Top Previous Next

657: Mainline

Thus, you must include the trades.h header file in both the main.c and the trades.c files:

                               trades.h             
                               *--------------*     
                               | Structure    | ----------* 
                               | declaration  |           | 
                               | and          |           |    
                               | function     |           | 
                               | prototypes   |           | 
                               *--------------*           | 
                                                          | 
main.c                         trades.c                   | 
*----------------------*       *----------------------*   | 
| #include "trades.h"  |       | #include "trades.h"  |   | 
| ...                  |<---*  | ...                  |<--| 
*----------------------*    |  *----------------------*   | 
                            *-----------------------------*