[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- To: misc_(_at_)_openbsd_(_dot_)_org
- From: "John D." <lists_(_at_)_webcrunchers_(_dot_)_com>
- Date: Sat, 7 Dec 2002 16:08:05 -0800
//What am I doing wrong???
//Compile command: "gcc a.c b.c -o a.c"
/***************contents of "a.c"*****************/
#include <stdio.h>
#include "b.h"
FILE *f;
int main(void) {
f=fopen("/var/file","w");
module();
fclose(f);
}
/***************contents of "b.c"*****************/
#include "b.h"
void module(void) {
fprintf(f,"data");
}
/***************contents of "b.h"*****************/
void module();
extern f;
Visit your host, monkey.org