mirror of /home/gitosis/repositories/libowfat.git
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.
13 lines
337 B
13 lines
337 B
#include "byte.h" |
|
|
|
/* byte_zero sets the bytes out[0], out[1], ..., out[len-1] to 0 */ |
|
void byte_zero(void* out, unsigned long len) { |
|
register char* s=out; |
|
register const char* t=s+len; |
|
for (;;) { |
|
if (s==t) break; *s=0; ++s; |
|
if (s==t) break; *s=0; ++s; |
|
if (s==t) break; *s=0; ++s; |
|
if (s==t) break; *s=0; ++s; |
|
} |
|
}
|
|
|