Re: String Character Conversion
- From: Jayson Davis <eclecticboxers@xxxxxxxxx>
- Date: Fri, 30 Jun 2006 18:32:07 GMT
Eric Sosman wrote:
Aha! I think I may have (*may* have) figured out
your difficulty. When you say the string as read is
"Needle\n\n", do you mean that there are ten characters
before the zero, the last four of which are "backslash,
n, backslash, n?" And that what you want is an eight-
character string ending in "newline, newline?"
That is exactly my difficulty. The string is ten characters and in order to do the string comparison, I need it ending in "newline newline".
Your program, it seems, wants to use a similar
convention to represent "difficult" characters. If
that's what you're after, you'll need to write your
own translation code. Depending on how many of the C
source forms you decide to accept, the size of this
project could be anywhere from trivial to smallish.
That's what I was fearing. Oh well, maybe this lil' gotcha is why it is part of the homework.
Thanks for your assistance and to the other folks who replied.
.
- References:
- String Character Conversion
- From: Jayson Davis
- Re: String Character Conversion
- From: Eric Sosman
- Re: String Character Conversion
- From: Jayson Davis
- Re: String Character Conversion
- From: Eric Sosman
- String Character Conversion
- Prev by Date: Re: Scope of specifier extern
- Next by Date: Re: void vs void* (philosophical question)
- Previous by thread: Re: String Character Conversion
- Next by thread: Re: String Character Conversion
- Index(es):
Relevant Pages
|