A
A_StClaire_
guys,
this is the code for strcpy, as most of you probably know and I found
out recently:
void str_copy(char* ptr1, char* ptr2) {
for( ; *ptr1 = *ptr2; ++ptr1, ++ptr2);
}
my question is, what the heck kind of loop is that? i.e., how is the
'condition' expression used for assignment like that?
thx
this is the code for strcpy, as most of you probably know and I found
out recently:
void str_copy(char* ptr1, char* ptr2) {
for( ; *ptr1 = *ptr2; ++ptr1, ++ptr2);
}
my question is, what the heck kind of loop is that? i.e., how is the
'condition' expression used for assignment like that?
thx