Mail Archives: djgpp/1996/09/04/18:04:39
x DOT pons AT cc DOT uab DOT es wrote:
>
> Dear programmers,
>
> In a multi-source project I have a global array, declared as:
>
> char my_global_array[256];
>
> in one of the modules.
>
> Which is the best way of declaring it on the other modules?
>
> extern char my_global_array[256]; ^^^ Prefered
> extern char *my_global_array; ^^^ NEVER (Not the same thing for globals)
> extern char my_global_array[]; ^^^ I'm pretty sure this works
>
> Thanks,
>
> XP
Bill
- Raw text -