Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
375 B

#include "byte.h"
#include <write12.h>
int main() {
char buf[4096];
__write1("both aligned\n");
byte_copy(buf,16,"this is a test!\n");
__write1("destination aligned, source unaligned\n");
byte_copy(buf,1000,buf+1);
__write1("destination unaligned, source aligned\n");
byte_copy(buf+1,1000,buf);
__write1("both unaligned\n");
byte_copy(buf+1,1000,buf+3);
}