is there a more elegant way to write the following code? ```c static int foo = 0; if (foo == 0) foo = fooo(); ``` the following code results in error ```c static int foo = fooo(); ```
afaik no `foo` needs to be initialized by a constant in c, and a function call isn't a constant