From: Haris Bogdanovi� on
How to escape " character in format ?
(format t "~a" (random 100))
I want to get " character around that random number ?

Thanks


From: Rupert Swarbrick on
"Haris Bogdanoviæ" <fbogdanovic(a)xnet.hr> writes:

> How to escape " character in format ?
> (format t "~a" (random 100))
> I want to get " character around that random number ?

Try

(format t "\"~A\"" (random 100))

Of course, since it's a number, you might want want to use ~D instead of
~A. Also, if you're outputting to the terminal, you probably want a
newline afterwards, which is ~%.

Rupert
From: Thomas A. Russ on
"Haris Bogdanovi��" <fbogdanovic(a)xnet.hr> writes:

> How to escape " character in format ?
> (format t "~a" (random 100))
> I want to get " character around that random number ?

It isn't format-specific.

You just use the general string escape character backslash (\):

"\"~a\""



--
Thomas A. Russ, USC/Information Sciences Institute