Listing 10 copyprob.c

   /* pseudocode on */
   /* copy characters looking for tab or blank. */
   while (not end of string) {
      if (tab or blank) {
       copy blank and advance pointers
       while (not end of string)
          if (not tab or blank)
           break
          else
           advance from pointer
      }
      /* we are not pointing to a blank or tab */
      copy next character and advance pointers
   }
   terminate string
   /* pseudocode off */

/* End of File */