954,498 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Global variable

Hi all,
I have the static variable g_listItem which is the header of the link list.
I have created the generic API which will be used by other module and every time this API(add_info_node()) is invoked I want to want the node to this single link list which I declare globally when the process is started.
So basisly in add_info_node() function will be used g_listItem which is global variable to add the new item(node) to the list. Ideally I don't want to use global variable(g_listIem) in this API9add_info_node()). Is there any way to get around for not using the global variable in this API(API9add_info_node()).
Thanks,
-J

jodie121997
Newbie Poster
4 posts since Oct 2009
Reputation Points: 10
Solved Threads: 0
 

pass the headers in the functions and return updated ones.

Gaiety
Junior Poster
120 posts since Sep 2009
Reputation Points: 13
Solved Threads: 3
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: