home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_09_12 / 9n12020b < prev    next >
Text File  |  1991-10-15  |  374b  |  21 lines

  1. /* cycle indefinitely through circular list, processing data */
  2.  
  3.     if (proot_node == NULL) {
  4.         fprintf(stderr, "List is empty\n");
  5.         exit(EXIT_FAILURE);
  6.     }
  7.  
  8.     pnode = proot_node;
  9.     while (1) {
  10.         if (pnode == proot_node) {
  11.             wait(5);
  12.             scr_clr();
  13.         }
  14.         scr_put(pnode->>line, pnode->>colm, pnode->>ch);
  15.         pnode = pnode->>pfwd;
  16.     }
  17.  
  18.     return(EXIT_SUCCESS);
  19. }
  20.  
  21.