summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-17 09:53:39 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-17 09:53:39 +0000
commitf2d8ababda905068528b340345c74e7f56f6e364 (patch)
tree62c40545a74832622ee1f7edef7faaa4ff118a3d /include
parentbb18d3cc1394e374f3a064ef7eadf9fed5af35de (diff)
mir_wstrndup added, the Unicode version of mir_strndup
git-svn-id: http://svn.miranda-ng.org/main/trunk@4066 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r--include/delphi/m_core.inc2
-rw-r--r--include/m_core.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/delphi/m_core.inc b/include/delphi/m_core.inc
index fb7d7034ba..fe6c08de9d 100644
--- a/include/delphi/m_core.inc
+++ b/include/delphi/m_core.inc
@@ -414,6 +414,8 @@ function mir_wstrdup(const src:PWideChar):PWideChar; stdcall;
external CoreDLL name 'mir_wstrdup';
function mir_strndup(const src:PAnsiChar; len:size_t):PAnsiChar; stdcall;
external CoreDLL name 'mir_strndup';
+function mir_wstrndup(const src:PWideChar; len:size_t):PWideChar; stdcall;
+ external CoreDLL name 'mir_wstrndup';
///////////////////////////////////////////////////////////////////////////////
diff --git a/include/m_core.h b/include/m_core.h
index 220289995e..6baf15d32e 100644
--- a/include/m_core.h
+++ b/include/m_core.h
@@ -346,7 +346,9 @@ MIR_C_CORE_DLL(void) mir_free(void* ptr);
MIR_CORE_DLL(char*) mir_strdup(const char* str);
MIR_CORE_DLL(WCHAR*) mir_wstrdup(const WCHAR* str);
+
MIR_CORE_DLL(char*) mir_strndup(const char* str, size_t len);
+MIR_CORE_DLL(WCHAR*) mir_wstrndup(const WCHAR *str, size_t len);
///////////////////////////////////////////////////////////////////////////////
// modules