home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 21 / CD_ASCQ_21_040595.iso / dos / prg / c / freedos3 / source / jh_utils / echov.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-07  |  453 b   |  21 lines

  1. #include <stdio.h>
  2.  
  3. /***************************************************************************
  4.  * This function prints the contents of a vector to its output, p, starting
  5.  * with a given element.  Useful for debugging.
  6.  * maintainer: James Hall
  7.  */
  8.  
  9. void 
  10. echov (int argc, char **argv, int iElem, FILE * p)
  11. {
  12.   int i;
  13.  
  14.   /* Print the contents to the screen */
  15.  
  16.   for (i = iElem; i < argc; i++)
  17.     fprintf (p, "%s ", argv[i]);
  18.  
  19.   fprintf (p, "\n");
  20. }
  21.