Re: global variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I do it in a very simle way. I just declare them as global variables in a 
file and as extern variables in remaining files. This way I can use these 
variables globally from functions in any file.

regards
kapil

On Sat, 23 Nov 2002, paridhi bansal wrote:

> Hi
> 
> I have multiple c files in  my project. How is it
> possible to declare static global variables  that are
> accessible from all these files without passing them
> as arguements??
> 
> Paridhi
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux