Subversion Repositories SvarDOS

Compare Revisions

Ignore whitespace Rev 1571 → Rev 1568

/sved/trunk/libc.c
15,12 → 15,7
}
 
void bzero(void *ptr, size_t len) {
char *p = ptr;
while (len > 0) {
*p = 0;
p++;
len--;
}
while (len > 0) ((char *)ptr)[--len] = 0;
}
 
/* TODO this function does not handle overlapping strings well! */