uLib
User mode C/C++ extended API library for Win32 programmers.
|
String duplication/allocation.
Preferred alternatives to strdup().
Note: These string duplicators add two NUL terminator TCHARs.
The second is added so the strings can be easily used as multi-sz arguments.
Macros | |
#define | mem_DupStr mem_DupAStr |
#define | mem_AllocStr mem_AllocAStr |
Functions | |
CSTR | newStr (CSTR Src) |
TSTR | newStrBuf (WORD nChar) |
CSTR | deleteStr (CSTR Dup) |
WCSTR | newWStr (WCSTR Src) |
WCSTR | deleteWStr (WCSTR Dup) |
ASTR | mem_DupAStr (ACSTR Src) |
WSTR | mem_DupWStr (WCSTR Src) |
ASTR | mem_AllocAStr (WORD nChar) |
WSTR | mem_AllocWStr (WORD nChar) |
CSTR | mem_FreeStr (CSTR Dup) |
#define mem_DupStr mem_DupAStr |
#define mem_AllocStr mem_AllocAStr |
Transmutable string new duplicate.
Definition at line 167 of file StrFunc.cpp.
Transmutable new string buffer.
Definition at line 183 of file StrFunc.cpp.
Delete duplicate, rtn NULL on success.
Definition at line 191 of file StrFunc.cpp.
Duplicate wide (unicode) string.
Definition at line 206 of file StrFunc.cpp.
Delete duplicate, rtn NULL on success.
Definition at line 219 of file StrFunc.cpp.
Ansi/MB string mem_Alloc() duplicate.
Definition at line 237 of file StrFunc.cpp.
Unicode string mem_Alloc() duplicate.
Definition at line 250 of file StrFunc.cpp.
mem_Alloc() ANSI/MB buffer.
Definition at line 258 of file StrFunc.cpp.
mem_Alloc() wide-string buffer.
Definition at line 264 of file StrFunc.cpp.
Delete duplicate, rtn NULL on success.
Definition at line 270 of file StrFunc.cpp.