home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume8 / gnuplot1.10A / part07 / help / present.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-09  |  521 b   |  32 lines

  1. /*
  2.  * Program    : help
  3.  * Module    : present.c
  4.  * Programmer    : R. Stolfa
  5.  *
  6.  * Purpose :    To generate a topics line without '/'s in it.
  7.  *
  8.  * Modification History:
  9.  *   08/31/87    Created
  10.  */
  11.  
  12. #include    "global.h"
  13.  
  14. present (str1, str2)
  15. char    *str1,
  16.     *str2;
  17. {
  18.     int    i;        /* temp */
  19.  
  20.     /*
  21.      * Make a line like "/vi/join/lines" more readable as
  22.      * " vi join lines"
  23.      */
  24.     printf ("%s", str1);
  25.     for (i = 0; i < strlen (cur_path); i ++)
  26.         if (cur_path[i] == '/')
  27.             putchar (' ');
  28.         else
  29.             putchar (cur_path[i]);
  30.     printf ("%s", str2);
  31. }
  32.