escape sequences
marwk at levels.sait.edu.au
marwk at levels.sait.edu.au
Mon Jan 28 10:55:19 AEST 1991
In article <1991Jan26.080726.21670 at nntp-server.caltech.edu>, fjs at nntp-server.caltech.edu (Fernando J. Selman) writes:
> Is there a way to conver the string (e.g.) "\a" to
> the constant '\a' at run time, without writing my
> own lookup table? Thank you,
> - Fernando
I hope this is what your question requires as an answer. It seems a bit
simple to solve, so maybe I don't understand what you mean.
char s = "\a"; /* a single character string */
char c; /* a character storage var */
c = *s; /* convert the string character to a single character */
Ray
--
University of South Australia | Plus ca change, plus c'est la meme chose.
P.O. Box 1 | Ghing thien me how, ming thien gung me how.
Ingle Farm |
South Australia |
More information about the Comp.lang.c
mailing list