stringutil.h: separate bcopy and bzero providing
This commit is contained in:
parent
123b247bed
commit
9b90e03e90
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue