fork download
  1. /* gcc won't produce any warning. */
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. int *f1(int i);
  6.  
  7. int *f1(int i) {
  8. i = 0;
  9. printf("i:%d\n", i);
  10. return NULL;
  11. }
  12.  
  13. int main(void) {
  14. int i;
  15. void *p;
  16.  
  17. while ((p = f1(i)) != NULL) {
  18. i++;
  19. }
  20.  
  21. return 0;
  22. }
  23.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
i:0