Hi all,
Following is a sample of my sub-agent stub file:
unsigned char *var_fnc()
{
my_struct *p;
header_simple_table(........)
{ }
if ( fnc(p->value) < 0)
{ return NULL; }
switch(vp->magic)
{
case VALUE:
cp = p->value;
return (unsigned char *) cp;
}
}
Now suppose i have a linked-list of type my_struct with three nodes. My problem is :
If "( fnc(p->value) < 0)" for 1st node, the function returns null and never checks 2nd and the 3rd node for "( fnc(p->value) < 0)".
In my case "( fnc(p->value)" will be "> 0" only at the 3rd node. but at present if "( fnc(p->value) < 0)" for 1st node, "*var_fnc()" is never called again.
Any suggestions on this please ???
Thanks
manik
Following is a sample of my sub-agent stub file:
unsigned char *var_fnc()
{
my_struct *p;
header_simple_table(........)
{ }
if ( fnc(p->value) < 0)
{ return NULL; }
switch(vp->magic)
{
case VALUE:
cp = p->value;
return (unsigned char *) cp;
}
}
Now suppose i have a linked-list of type my_struct with three nodes. My problem is :
If "( fnc(p->value) < 0)" for 1st node, the function returns null and never checks 2nd and the 3rd node for "( fnc(p->value) < 0)".
In my case "( fnc(p->value)" will be "> 0" only at the 3rd node. but at present if "( fnc(p->value) < 0)" for 1st node, "*var_fnc()" is never called again.
Any suggestions on this please ???
Thanks
manik
Yahoo! Shopping
Find Great Deals on Gifts at Yahoo! Shopping