diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-01-24 02:19:55 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-01-24 02:19:55 +0800 |
commit | a8f286bf0dfb9eea2dfc4fc8c93d4975d366d0a5 (patch) | |
tree | 1034a3056e6e73a8fbd0fe95f7564c2f442a89ff /include/bbs.h | |
parent | 0d4e404238bcbc37506c7c7f6a029ba37705c12f (diff) | |
download | pttbbs-a8f286bf0dfb9eea2dfc4fc8c93d4975d366d0a5.tar pttbbs-a8f286bf0dfb9eea2dfc4fc8c93d4975d366d0a5.tar.gz pttbbs-a8f286bf0dfb9eea2dfc4fc8c93d4975d366d0a5.tar.bz2 pttbbs-a8f286bf0dfb9eea2dfc4fc8c93d4975d366d0a5.tar.lz pttbbs-a8f286bf0dfb9eea2dfc4fc8c93d4975d366d0a5.tar.xz pttbbs-a8f286bf0dfb9eea2dfc4fc8c93d4975d366d0a5.tar.zst pttbbs-a8f286bf0dfb9eea2dfc4fc8c93d4975d366d0a5.zip |
import strlcat(), strlcpy() for fucking linux
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@640 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include/bbs.h')
-rw-r--r-- | include/bbs.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/bbs.h b/include/bbs.h index 87b038a7..600ad781 100644 --- a/include/bbs.h +++ b/include/bbs.h @@ -58,8 +58,12 @@ #ifdef Linux #include <sys/param.h> #include <limits.h> - #define strlcpy(a,b,c) strncpy(a,b,c) - #define strlcat(a,b,c) strncat(a,b,c) + #include <sys/file.h> // for flock() + size_t + strlcpy(char *dst, const char *src, size_t size); + + size_t + strlcat(char *dst, const char *src, size_t size); #endif #endif /* INCLUDE_BBS_H */ |