Browse Source

stringutil.h: separate bcopy and bzero providing

pre-master-46
dwarning 17 years ago
parent
commit
9b90e03e90
  1. 4
      src/misc/string.c
  2. 7
      src/misc/stringutil.h

4
src/misc/string.c

@ -407,7 +407,6 @@ stripWhiteSpacesInsideParens(char *str)
#ifndef HAVE_BCOPY
#ifndef bcopy
void
bcopy(const void *vfrom, void *vto, size_t num)
@ -419,7 +418,9 @@ bcopy(const void *vfrom, void *vto, size_t num)
return;
}
#endif
#endif
#ifndef HAVE_BZERO
#ifndef bzero
void
bzero(void *vptr, size_t num)
@ -429,7 +430,6 @@ bzero(void *vptr, size_t num)
*ptr++ = '\0';
return;
}
#endif
#endif

7
src/misc/stringutil.h

@ -30,11 +30,12 @@ int cimatch(register char *p, register char *s);
#endif
#ifndef HAVE_BCOPY
void bcopy(const void *from, void *to, size_t num);
void bzero(void *ptr, size_t num);
#endif
#endif /* HAVE_BCOPY */
#ifndef HAVE_BZERO
void bzero(void *ptr, size_t num);
#endif
bool isquote(char ch);
bool is_arith_char(char c);

Loading…
Cancel
Save