say i am using a global variable to hold the value of a signal (in a schematics for a circuit board sense) in one function
void randomfunction()
{
for(t=lnnew,s=node->name;*s;)
{
if()
//some code
else
*t=*s;
t++;
s++;
}
printf("%s \n",lnnew); //so now here lnnew is holding new values of signal and when i print this, every time new value of signal is printed and i have declared it as global
}
now how can i use this global variable inside any other function say writelnnewvalue()
so that when ever value of lnnew changes in randomfunction()
, it also get changes and printed in writelnnewvalue ()
function?
I had asked similar type of question in this link , if it seems to be exact copy then mark it as duplicate.