Another example of chunking
char* strcpy(char* p, const char* q) {
while (true) {
*p = *q;
if (*q == `\0')
return;
++p; ++q;
}
}
char* strcpy(char* p, const char* q) {
while (*p++ = *q++) ;
}
Previous slide
Next slide
Back to first slide
View graphic version