home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / utils / source / bsdpsx / for2bak.c < prev    next >
C/C++ Source or Header  |  1995-05-18  |  203b  |  14 lines

  1. #include <stdio.h>
  2. /*
  3.  * For2bak:  Converts a string's fore slashes to back slashes.  MSS
  4.  */
  5.  
  6. void for2bak(char * str) 
  7. {
  8.     while (*str) {
  9.         if(*str == '/')
  10.             *str = '\\';
  11.         str++;
  12.     }            
  13. }
  14.