Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    \$\begingroup\$ do you need to add #include <signal.h> in the code listing? \$\endgroup\$ Commented Nov 28, 2016 at 8:16
  • 8
    \$\begingroup\$ @FlorianCastellane: in C90 and lower, for any function call done without a visible declaration, the compiler implicitly declares it as int func(). i.e. a function returning int, taking unspecified parameters. In this case raise is a function returning int, taking an int argument, so this works out (even if the compiler complains). \$\endgroup\$ Commented Nov 28, 2016 at 13:26
  • \$\begingroup\$ @Hasturkun main(){main();} \$\endgroup\$ Commented Mar 9, 2020 at 1:16