Formatting chars's w/ backslash

George Armhold armhold at topaz.rutgers.edu
Thu Jul 13 03:08:02 AEST 1989


I'm posting this for a friend. Please try to send replies to:
vosseler at zodiac.rutgers.edu. 
If you can't reach him there, I'll forward the mail.
Thanks!

-George

------------------------------------------------------------------------
I am using Borland Turbo C and I am trying to write a program to go
through a string and convert backslashes to double backslashes.  I need
to make a path name (such as: "g:\tc\include") so that I can use it
in system calls in order to change directories.  The SYSTEM function
requires double backslashes.  When I go through the string character by
character it recognizes g,:,c,n,c,l,u,d and e as characters but the t
and i are interpreted as control characters.  Does anyone know of an
existing function (or how to write a function) that will allow this
conversion.

Thanx....

-Please reply to VOSSELER at ZODIAC.RUTGERS.EDU
------------------------------------------------------------------------



More information about the Comp.lang.c mailing list