fork download
  1. #include <stdio.h>
  2.  
  3. #ifdef BLUB_UNIX
  4.  
  5. void foo(int, double);
  6.  
  7. #else
  8.  
  9. void foo(int, double, char*);
  10.  
  11. #endif
  12.  
  13. int main(void)
  14. {
  15. foo(10, 3.234, "hello");
  16.  
  17. return 0;
  18. }
  19.  
  20. #ifdef BLUB_UNIX
  21.  
  22. void foo(int x, double d)
  23. {
  24. printf("%d, %f", x, d);
  25. }
  26.  
  27. #else
  28.  
  29. void foo(int x, double d, char* str)
  30. {
  31. printf("%d, %f, %s", x, d, str);
  32. }
  33.  
  34. #endif
  35.  
Success #stdin #stdout 0.02s 1720KB
stdin
Standard input is empty
stdout
10, 3.234000, hello