It is equivalent to this:
while (*t) {
*s = *t;
s++;
t++;
}
*s = *t;
When the char that t
points to is ''
, the while loop will terminate. Until then, it will copy the char that t
is pointing to to the char that s
is pointing to, then increment s
and t
to point to the next char in their arrays.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…