string.c
changeset 4209 f0ecce3cb2b0
parent 4200 e6ba94085b81
child 4299 91f5d2bedcff
equal deleted inserted replaced
4208:ce140ac892d0 4209:f0ecce3cb2b0
     2 
     2 
     3 #include "stdafx.h"
     3 #include "stdafx.h"
     4 #include "string.h"
     4 #include "string.h"
     5 
     5 
     6 #include <stdarg.h>
     6 #include <stdarg.h>
     7 #if defined(UNIX) || defined(__OS2__)
       
     8 #include <ctype.h> // required for tolower()
     7 #include <ctype.h> // required for tolower()
     9 #endif
       
    10 
     8 
    11 void ttd_strlcat(char *dst, const char *src, size_t size)
     9 void ttd_strlcat(char *dst, const char *src, size_t size)
    12 {
    10 {
    13 	assert(size > 0);
    11 	assert(size > 0);
    14 	for (; size > 0 && *dst != '\0'; --size, ++dst) {}
    12 	for (; size > 0 && *dst != '\0'; --size, ++dst) {}