Removed Q_strncatz() and Q_strncpyz().
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2827 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
85c9f289a9
commit
391b3d2057
1 changed files with 0 additions and 14 deletions
14
fteqtv/qtv.h
14
fteqtv/qtv.h
|
@ -164,20 +164,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#define ustrcmp(s1,s2) strcmp((char*)(s1),(char*)(s2))
|
||||
#define ustrncmp(s1,s2,l) strncmp((char*)(s1),(char*)(s2),l)
|
||||
|
||||
//some systems have strlcat / strlcpy
|
||||
//we support windows and can't use those
|
||||
#define Q_strncatz(dest, src, sizeofdest) \
|
||||
do { \
|
||||
strncat(dest, src, sizeofdest - strlen(dest) - 1); \
|
||||
dest[sizeofdest - 1] = 0; \
|
||||
} while (0)
|
||||
#define Q_strncpyz(dest, src, sizeofdest) \
|
||||
do { \
|
||||
strncpy(dest, src, sizeofdest - 1); \
|
||||
dest[sizeofdest - 1] = 0; \
|
||||
} while (0)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue