STRESCAPE

Purpose:

Converts special "escape" characters in a string.

Syntax:

STRESCAPE("string")

"string"

-

A string.

Returns:

A string.

Example:

fopen("TEST.TXT","w+")

 

fputs(strcat("This will display", strescape("\n"), "two lines.", strescape("\n")), "TEST.TXT")

 

fclose("TEST.TXT")

 

viewfile("TEST.TXT")

 

The is evaluated as a carriage return when the string is written to a file.

Remarks:

The following escape sequences are recognized:

 

\n

newline

\t

tab

\b

backspace

\r

carriage return

\f

form feed

\\

backslash

\'

single quote

\ddd

bit pattern

 

See Also:

CHARSTR

CHARSTRS

SPRINTF

STRCAT