string.c
changeset 4209 829a127ef3c6
parent 4200 a45420ba0c23
child 4299 b86602eaaff1
equal deleted inserted replaced
4208:16423c4ed3c5 4209:829a127ef3c6
     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) {}