Loadrunner's public variable
All of the C functions can be used in Loarunner, and each action of loadrunner is something like function, so the variable in an action can't be used in other action because it will be recognized to a local variable. If wanting to use public variable, you must define it out of any action.