S
stmilam
Here are two different ways of accomplishing the same end:
to_len ? memmove(ptr, l_to, to_len), ptr += to_len : NULL;
or
if ( to_len ) {
memmove( ptr, l_to, to_len );
ptr += to_len;
}
I like the first one, but in light that not everyone grasps the ternary
and comma operators the second is more likely to make sense. Any other
ideas?
to_len ? memmove(ptr, l_to, to_len), ptr += to_len : NULL;
or
if ( to_len ) {
memmove( ptr, l_to, to_len );
ptr += to_len;
}
I like the first one, but in light that not everyone grasps the ternary
and comma operators the second is more likely to make sense. Any other
ideas?