Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
Define all your globals into a .c file , e.g globals.c
declare them as extern into a .h file, e.g globals.h
include "globals.h" everywhere you want to use these global variables.
From: Shahzad Khan [mailto:shahzadfkt@...]
Sent: Tuesday, June 24, 2003 5:53 PM
Subject: [Sdcc-user] sdcc help : Urgent
I have a problem with programming.
Actually, I am making a programme with multiple source
files and with several global variables. So, I need a
way of declaring those global variables so that I need
not pass them as parameters to all the functions. Once
I declare them somewhere, then they should be
accessible to all the functions.
Please help me,
CENTER FOR ROBOTICS
INDIAN INSTITUTE OF TECHNOLOGY (IIT) KANPUR ,INDIA-208016
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
Sdcc-user mailing list