Subversion Repositories filter_foundry

Rev

Rev 460 | Rev 512 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 460 Rev 495
Line 25... Line 25...
25
#endif
25
#endif
26
 
26
 
27
#include "str.h"
27
#include "str.h"
28
#include "sprintf_tiny.h"
28
#include "sprintf_tiny.h"
29
 
29
 
-
 
30
 
-
 
31
void strcpy_advance(TCHAR** str, TCHAR* append) {
-
 
32
        xstrcpy(*str, append);
-
 
33
        *str += xstrlen(append);
-
 
34
}
-
 
35
 
-
 
36
void strcpy_advance_a(TCHAR** str, char* append) {
-
 
37
#ifdef UNICODE
-
 
38
        mbstowcs(*str, append, 1000);
-
 
39
        *str += strlen(append);
-
 
40
#else
-
 
41
        strcpy_advance(str, append);
-
 
42
#endif
-
 
43
}
-
 
44
 
30
#ifdef UNICODE
45
#ifdef UNICODE
31
size_t xstrlen(wchar_t* s) {
46
size_t xstrlen(wchar_t* s) {
32
        return lstrlen(s);
47
        return lstrlen(s);
33
}
48
}
34
wchar_t* xstrcpy(wchar_t* dst, wchar_t* src) {
49
wchar_t* xstrcpy(wchar_t* dst, wchar_t* src) {