Subversion Repositories SvarDOS

Rev

Rev 1568 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1568 Rev 1571
Line 13... Line 13...
13
  while (*ptr != 0) ptr++;
13
  while (*ptr != 0) ptr++;
14
  return(ptr - s);
14
  return(ptr - s);
15
}
15
}
16
 
16
 
17
void bzero(void *ptr, size_t len) {
17
void bzero(void *ptr, size_t len) {
-
 
18
  char *p = ptr;
18
  while (len > 0) ((char *)ptr)[--len] = 0;
19
  while (len > 0) {
-
 
20
    *p = 0;
-
 
21
    p++;
-
 
22
    len--;
-
 
23
  }
19
}
24
}
20
 
25
 
21
/* TODO this function does not handle overlapping strings well! */
26
/* TODO this function does not handle overlapping strings well! */
22
void fmemmove(void far *dst, const void far *src, size_t len) {
27
void fmemmove(void far *dst, const void far *src, size_t len) {
23
  while (len-- > 0) {
28
  while (len-- > 0) {