static key word in user functions

Can I use static key word in user function?

FUNC char StateMachine(void)
{
  static unsigned char _state;

  switch(_state)
  {
    case 0:
      ...
  }
}

Parents Reply Children
More questions in this forum