O
Old Wolf
char *out = dest;
char const *in = src;
while ( out != dest + dest_len && in != src + src_len )
*dest++ = *src++;
Also on the same day: icc_check is a function that returns a
status value, and also 'returns' the previous status value by writing
to the pointer you pass to it.
if ( icc_check(&state) != state )
{
/* note that state has changed */
}
char const *in = src;
while ( out != dest + dest_len && in != src + src_len )
*dest++ = *src++;
Also on the same day: icc_check is a function that returns a
status value, and also 'returns' the previous status value by writing
to the pointer you pass to it.
if ( icc_check(&state) != state )
{
/* note that state has changed */
}