diff options
Diffstat (limited to 'ext/mysql/libmysql/strmov.c')
-rw-r--r-- | ext/mysql/libmysql/strmov.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/mysql/libmysql/strmov.c b/ext/mysql/libmysql/strmov.c index b41470aef4..66e90a8d6c 100644 --- a/ext/mysql/libmysql/strmov.c +++ b/ext/mysql/libmysql/strmov.c @@ -1,3 +1,6 @@ +/* Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB +This file is public domain and comes with NO WARRANTY of any kind */ + /* strmov(dst, src) moves all the characters of src (including the closing NUL) to dst, and returns a pointer to the new closing NUL in @@ -14,11 +17,13 @@ #define strmov strmov_overlapp #endif +#ifndef strmov + #if !defined(MC68000) && !defined(DS90) char *strmov(register char *dst, register const char *src) { - while (*dst++ = *src++) ; + while ((*dst++ = *src++)) ; return dst-1; } @@ -36,3 +41,5 @@ char *strmov(dst, src) } #endif + +#endif /* strmov */ |