[comp.lang.c] Formatting chars's w/ backslash

armhold@topaz.rutgers.edu (George Armhold) (07/13/89)

I'm posting this for a friend. Please try to send replies to:
vosseler@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@ZODIAC.RUTGERS.EDU
------------------------------------------------------------------------