home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / aoflib_2 / Example / c / program1 next >
Encoding:
Text File  |  1996-06-20  |  330 b   |  20 lines

  1. /* program1.c */
  2.  
  3. #include <stdio.h>
  4.  
  5. /* define prototypes for the functions */
  6. void print(char);
  7. int  count(void);
  8.  
  9. int main()
  10. {
  11.    int i;
  12.  
  13.    printf("This is an example of the print() function:\n");
  14.    print('@');
  15.    printf("\n\n");
  16.  
  17.    for(i=0;i<5;i++)
  18.      printf("count() has been called %d time(s) previously\n",count());
  19. }
  20.