two_func.c 404 B

12345678910111213141516
  1. //* two_func.c -- a program using two functions in one file */
  2. #include <stdio.h>
  3. void butler(void); /* ANSI/ISO C function prototyping */
  4. int main(void)
  5. {
  6. printf("I will summon the butler function.\n");
  7. butler();
  8. printf("Yes. Bring me some tea and writeable DVDs.\n");
  9. return 0;
  10. }
  11. void butler(void) /* start of function definition */
  12. {
  13. printf("You rang, sir?\n");
  14. }