home *** CD-ROM | disk | FTP | other *** search
/ C by Discovery (4th Edition) / C_By_Discovery_4th_Edition.tar / C_By_Discovery_4th_Edition / _DISK_ / ch1 / shortsub.c < prev    next >
C/C++ Source or Header  |  2005-06-16  |  473b  |  21 lines

  1. /*                          shortsub.c 
  2.  *
  3.  *   Synopsis  - Control is passed from the function main() to the
  4.  *               function sub_funct() and back.
  5.  *
  6.  *   Objective - Illustrates a subfunction and function call. 
  7.  *
  8.  */
  9.  
  10. void does_nothing( void );                      /* Note 1 */
  11.  
  12. int main(void)
  13. {
  14.      does_nothing();                           /* Note 2 */
  15.      return 0;
  16. }
  17.  
  18. void does_nothing(void)                        /* Note 3 */
  19. {
  20. }
  21.