www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/04/11:46:38

Date: Wed, 04 Sep 1996 17:33:15 +0000
From: "x DOT pons AT cc DOT uab DOT es" <ILGES AT cc DOT uab DOT es>
Subject: Declaring global arrays in a multisource project
To: djgpp AT delorie DOT com
Message-id: <01I937U2638O00D67E@cc.uab.es>
Organization: Universitat Autonoma de Barcelona
MIME-version: 1.0

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];
  extern char *my_global_array;
  extern char my_global_array[];

Thanks,

XP

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019