Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!bu.edu!purdue!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: escape sequences Message-ID: <14992@smoke.brl.mil> Date: 27 Jan 91 00:26:15 GMT References: <1991Jan26.080726.21670@nntp-server.caltech.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 11 In article <1991Jan26.080726.21670@nntp-server.caltech.edu> fjs@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? Judging from the "Subject:" line, what you are actually after is a way to convert a string such as "\\a" to the character '\a'. Since this amounts to a part of the normal job of compilation, but you want instead to defer the action to run time, the answer is that there is no simple way to do this. Use of a lookup table is probably the easiest method.