View Single Post
  #1   Spotlight this post!  
Unread 23-01-2008, 09:46
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
static local variables

Is there a correct way to define a variable inside a function as "static" so it retains a value between invocations of the function? I've resorted to a user code block in order to do it so far. Unfortunately, that doesn't make the variable "known" to the rest of the EasyC system -- it won't show up in the drop-down menus, for example.