:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / lib / kernel32 / string / lstring.c
1 /*
2  * COPYRIGHT:       See COPYING in the top level directory
3  * PROJECT:         ReactOS system libraries
4  * FILE:            lib/kernel32/file/lstring.c
5  * PURPOSE:         Local string functions
6  * PROGRAMMER:      Ariadne ( ariadne@xs4all.nl)
7  * UPDATE HISTORY:
8  *                  Created 01/11/98
9  */
10
11 #include <windows.h>
12 #include <string.h>
13 #include <wchar.h>
14
15
16 int
17 STDCALL
18 lstrcmpA(
19          LPCSTR lpString1,
20          LPCSTR lpString2
21          )
22 {
23         return strcmp(lpString1,lpString2);
24 }
25
26 int
27 STDCALL
28 lstrcmpiA(
29           LPCSTR lpString1,
30           LPCSTR lpString2
31           )
32 {
33         return _stricmp(lpString1,lpString2); 
34 }
35
36 LPSTR
37 STDCALL
38 lstrcpynA(
39           LPSTR lpString1,
40           LPCSTR lpString2,
41           int iMaxLength
42           )
43 {
44         return strncpy(lpString1,lpString2,iMaxLength);
45 }
46
47 LPSTR
48 STDCALL
49 lstrcpyA(
50          LPSTR lpString1,
51          LPCSTR lpString2
52          )
53 {
54         return strcpy(lpString1,lpString2);
55 }
56
57 LPSTR
58 STDCALL
59 lstrcatA(
60          LPSTR lpString1,
61          LPCSTR lpString2
62          )
63 {
64         return strcat(lpString1,lpString2);
65 }
66
67 int
68 STDCALL
69 lstrlenA(
70          LPCSTR lpString
71          )
72 {
73         return strlen(lpString);
74 }
75
76 int
77 STDCALL
78 lstrcmpW(
79          LPCWSTR lpString1,
80          LPCWSTR lpString2
81          )
82 {
83         return wcscmp(lpString1,lpString2);
84 }
85
86 int
87 STDCALL
88 lstrcmpiW(
89     LPCWSTR lpString1,
90     LPCWSTR lpString2
91     )
92 {
93         return _wcsicmp(lpString1,lpString2);
94 }
95
96 LPWSTR
97 STDCALL
98 lstrcpynW(
99     LPWSTR lpString1,
100     LPCWSTR lpString2,
101     int iMaxLength
102     )
103 {
104         return wcsncpy(lpString1,lpString2,iMaxLength);
105 }
106
107 LPWSTR
108 STDCALL
109 lstrcpyW(
110     LPWSTR lpString1,
111     LPCWSTR lpString2
112     )
113 {
114         return wcscpy(lpString1,lpString2);     
115 }
116
117 LPWSTR
118 STDCALL
119 lstrcatW(
120     LPWSTR lpString1,
121     LPCWSTR lpString2
122     )
123 {
124         return wcscat(lpString1,lpString2);
125 }
126
127 int
128 STDCALL
129 lstrlenW(
130     LPCWSTR lpString
131     )
132 {
133         return wcslen(lpString);
134 }
135
136