Don't get rid of "static". I put it there for a reason. Without it you are returning the address of a variable on the stack, which no longer exists.
Don't get rid of "static". I put it there for a reason. Without it you are returning the address of a variable on the stack, which no longer exists.