/* * file to demonstrate the use of header files * in multifile C programs * * this defines glob in 2 files, causing an error * in compilation * * if compiled with -DNOGLOB, it doesn't define glob * * Matt Bishop, ECS 36A * -- June 4, 2024 original program */ #include <stdio.h> #ifndef NOGLOB int glob; /* an example global variable */ #endif void b(void); /* an example function prototype */
|
ECS 36A, Programming & Problem Solving Version of April 2, 2024 at 12:13PM
|
You can get the raw source code here. |