home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_10_07 / 1007089a < prev    next >
Text File  |  1992-05-05  |  445b  |  24 lines

  1.  
  2. main()
  3.         {
  4.         int c;
  5.         
  6.         while (c = nextsp())
  7.                 putchar(c);
  8.         while (c = nextap())
  9.                 putchar(c);
  10.                 
  11.         }
  12.  
  13. nextsp()
  14.         {
  15.         static char *p = "This string will be shown from the beginning to the end";
  16.         return *p++;
  17.         }
  18.  
  19. nextap()
  20.         {
  21.         char *p = "This string will never be shown";
  22.         return *p++;
  23.         }
  24.