State Function And Path Function Examples In C