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.

15 lines
350 B
C

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