The result of an '=' operation is what was assigned. For example: ((x = 3) == 3) is true. Simon Stirley wrote: > > > > Also, what is the logic behind understanding the actual > > test in the while > > > loop? I can't understand from the syntax exactly what is > > being compared to > > > '\0'. Is it *s? *t? If so, why? > > > > Well, since the char at the location pointed to by t is > > placed into the > > location pointed to by s, they both should now contain the > > same data. So it > > doesn't matter which location gets compared to zero. > > (\0). > > I thought it was the outcome of the = operation that was compared in a > compound statement like this .. ie. the operation was successful. In this > example I would expect the target of the copy to be null characters anyway, > otherwise you'd be over-writing some other string. > > Simon. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.