declarations in include files: how do YOU feel?

Henry Spencer henry at utzoo.uucp
Sat May 13 01:45:24 AEST 1989


In article <180 at larry.sal.wisc.edu> jwp at larry.sal.wisc.edu.UUCP (Jeffrey W Percival) writes:
>... That is, if lib.h contains
>an "extern char foo()" and foo.c includes lib.h and then goes
>on to define foo, is this a problem?

In the absence of errors like type mismatches, no problems will ensue.
In fact, catching things like type mismatches is a very strong reason
to do exactly this.
-- 
Mars in 1980s:  USSR, 2 tries, |     Henry Spencer at U of Toronto Zoology
2 failures; USA, 0 tries.      | uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list