strcpy & declaration of functions
Shankar Unni
shankar at hpclscu.HP.COM
Wed Jun 14 05:58:23 AEST 1989
> This is for all you standards nuts out there. When declaring FUNCTIONS
> which is better.
> extern int atoi();
> or
> int atoi();
Both are quite legal. From a purely coding-standard point of view, I
use the first form for a function that is not in this compilation unit.
I use the second form when it is a forward declaration for a function
in this compilation unit.
Makes the source a *little* easier to read.
----
Shankar.
More information about the Comp.lang.c
mailing list