runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

byte_copy.c (305B)


      1 /* Public domain. */
      2 
      3 #include "byte.h"
      4 
      5 void byte_copy( register char* to, register size_t n, register char* from)
      6 {
      7   for (;;) {
      8     if (!n) return; *to++ = *from++; --n;
      9     if (!n) return; *to++ = *from++; --n;
     10     if (!n) return; *to++ = *from++; --n;
     11     if (!n) return; *to++ = *from++; --n;
     12   }
     13 }