All pastes #477371 Raw Edit

SamChi

public c v1 · immutable
·published 2007-05-08 16:40 UTC
rendered paste body
voidcopy_ptr( int *src, int *dst, int count ){        int *dst_end = dst + count;        while (dst < dst_end)                *dst++ = *src++;}voidcopy_tab( int *src, int *dst, int count ){        int i;        for ( i = 0; i < count; i++ )                dst[i] = src[i];}