Re: String Comparision



On Apr 30, 5:46 am, Flash Gordon <s...@xxxxxxxxxxxxxxxxxx> wrote:
Then your description of the problem is inaccurate, the code does not
modify the strings. I suggest you examine the improvements and comments
by myself and the others and see if it then works.

He never said it did. He said that "s" and "t" were modified.
Those are pointers to char, which he increments in each
loop iteration.


.



Relevant Pages

  • Re: Function Problem
    ... > but fnReplace takes pointers to strings of length 16. ... > void fnReplace (char *RplStr) ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: initializing table of strings
    ... >sense to set strings in decleration. ... The fact that it is an array of pointers to const char does not matter ...
    (alt.comp.lang.learn.c-cpp)
  • Re: pointer question (pretty basic)...
    ... Needn't I initialize the pointers first? ... to point to two strings stored somewhere else. ... you'd have been better to use const char ... *pThing instead of char *pThing. ...
    (comp.lang.c)
  • RE: Re: What does "*" mean in "int main(int argc, char *argv[])"?
    ... char arrays (strings). ... "char *argv" says it all as you stated. ... It is a pointer to an array of pointers to nul-terminated ...
    (alt.comp.lang.learn.c-cpp)
  • Re: CompareWithoutRegardToCase
    ... > Returns true if strings are identical, returns false if strings are not ... (without regard to case). ... bool CompareWithoutRegardToCase (char x, char y) ... // Undefined behaviour if supplied with null pointers ...
    (comp.lang.cpp)