equal
deleted
inserted
replaced
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) {} |