1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-28 08:59:09 +00:00

(svn r1821) Move generic string handling functions to string.[ch] and introduce stre{cpy,cat}, see string.h for their semantics

This commit is contained in:
tron
2005-02-06 13:41:02 +00:00
parent 498ccae27a
commit b2ae5b197e
21 changed files with 83 additions and 25 deletions

View File

@@ -214,6 +214,7 @@ assert_compile(sizeof(uint8) == 1);
#define lengthof(x) (sizeof(x)/sizeof(x[0]))
#define endof(x) (&x[lengthof(x)])
#define lastof(x) (&x[lengthof(x) - 1])
#ifndef offsetof
#define offsetof(s,m) (size_t)&(((s *)0)->m)
#endif