You cannot 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
C

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