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.

16 lines
362 B

19 years ago
#include "byte.h"
18 years ago
#include "errmsg.h"
19 years ago
int main() {
char buf[4096];
18 years ago
carp("both aligned");
19 years ago
byte_copy(buf,16,"this is a test!\n");
18 years ago
carp("destination aligned, source unaligned");
19 years ago
byte_copy(buf,1000,buf+1);
18 years ago
carp("destination unaligned, source aligned");
19 years ago
byte_copy(buf+1,1000,buf);
18 years ago
carp("both unaligned");
19 years ago
byte_copy(buf+1,1000,buf+3);
return 0;
19 years ago
}