stringutil.h: separate bcopy and bzero providing

This commit is contained in:
dwarning 2009-10-18 13:46:09 +00:00
parent 123b247bed
commit 9b90e03e90
2 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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);