#include <precomp.h>
#include <assert.h>
#include <internal/wine/msvcrt.h>
#include "wine/unicode.h"
Go to the source code of this file.
|
wchar_t *CDECL | _wcsdup (const wchar_t *str) |
|
INT CDECL | _wcsicoll (const wchar_t *str1, const wchar_t *str2) |
|
wchar_t *CDECL | _wcsnset (wchar_t *str, wchar_t c, size_t n) |
|
wchar_t *CDECL | _wcsrev (wchar_t *str) |
|
wchar_t *CDECL | _wcsset (wchar_t *str, wchar_t c) |
|
INT CDECL | _wcsupr_s (wchar_t *str, size_t n) |
|
double CDECL | wcstod (const wchar_t *lpszStr, wchar_t **end) |
|
int CDECL | wcscoll (const wchar_t *str1, const wchar_t *str2) |
|
wchar_t *CDECL | wcspbrk (const wchar_t *str, const wchar_t *accept) |
|
INT CDECL | wctomb (char *dst, wchar_t ch) |
|
static size_t CDECL | wcsrtombs_l (char *mbstr, const wchar_t **wcstr, size_t count, _locale_t locale) |
|
size_t CDECL | _wcstombs_l (char *mbstr, const wchar_t *wcstr, size_t count, _locale_t locale) |
|
size_t CDECL | wcstombs (char *mbstr, const wchar_t *wcstr, size_t count) |
|
INT CDECL | wcscpy_s (wchar_t *wcDest, size_t numElement, const wchar_t *wcSrc) |
|
INT CDECL | wcsncpy_s (wchar_t *wcDest, size_t numElement, const wchar_t *wcSrc, size_t count) |
|
INT CDECL | wcscat_s (wchar_t *dst, size_t elem, const wchar_t *src) |
|
INT CDECL | wcsncat_s (wchar_t *dst, size_t elem, const wchar_t *src, size_t count) |
|
◆ _wcsdup()
Definition at line 53 of file wcs.c.
54{
57 {
61 }
63}
#define memcpy(s1, s2, n)
◆ _wcsicoll()
Definition at line 67 of file wcs.c.
◆ _wcsnset()
Definition at line 77 of file wcs.c.
78{
80 while ((
n-- > 0) && *
str) *
str++ =
c;
82}
◆ _wcsrev()
Definition at line 87 of file wcs.c.
◆ _wcsset()
◆ _wcstombs_l()
Definition at line 328 of file wcs.c.
329{
331}
GLuint GLuint GLsizei count
static size_t CDECL wcsrtombs_l(char *mbstr, const wchar_t **wcstr, size_t count, _locale_t locale)
◆ _wcsupr_s()
Definition at line 115 of file wcs.c.
116{
118
120 {
124 }
125
127 {
131 }
132
133
134
138}
errno_t __cdecl _set_errno(_In_ int _Value)
◆ wcscat_s()
Definition at line 406 of file wcs.c.
407{
409
412 {
415 }
416
417
420 {
421 if ((*
ptr++ = *
src++) ==
'\0')
return 0;
422 }
423
426}
◆ wcscoll()
◆ wcscpy_s()
Definition at line 345 of file wcs.c.
346{
348
349 if(!wcDest || !numElement)
351
352 wcDest[0] = 0;
353
355 {
357 }
358
360
361 if(
size > numElement)
362 {
364 }
365
367
368 return 0;
369}
static const unsigned char *static size_t const wchar_t * wcSrc
◆ wcsncat_s()
Definition at line 432 of file wcs.c.
434{
436 wchar_t dststart;
438
440 {
441#ifndef _LIBCNT_
443#endif
445 }
449 return 0;
450
451 for (dststart = 0; dststart <
elem; dststart++)
452 {
453 if (
dst[dststart] ==
'\0')
454 break;
455 }
456 if (dststart ==
elem)
457 {
460 }
461
463 {
466 {
469 }
470 }
471 else
474 {
478 }
482}
#define MSVCRT_INVALID_PMT(x)
#define MSVCRT_CHECK_PMT(x)
static DWORD LPDWORD LPCSTR DWORD srclen
◆ wcsncpy_s()
Definition at line 374 of file wcs.c.
376{
378
379 if (!wcDest || !numElement)
381
382 wcDest[0] = 0;
383
385 {
387 }
388
390
391 if (
size >= numElement)
392 {
394 }
395
398
399 return 0;
400}
◆ wcspbrk()
Definition at line 225 of file wcs.c.
226{
229 {
232 }
234}
SOCKET WSAAPI accept(IN SOCKET s, OUT LPSOCKADDR addr, OUT INT FAR *addrlen)
◆ wcsrtombs_l()
Definition at line 260 of file wcs.c.
262{
264 size_t tmp = 0;
266
269 else
271
274
275 if(!mbstr)
277
279 if((*wcstr)[
i] > 255) {
281 return -1;
282 }
283
284 mbstr[
i] = (*wcstr)[
i];
285 if(!(*wcstr)[
i])
break;
286 }
288 }
289
290 if(!mbstr) {
292 *wcstr, -1,
NULL, 0,
NULL, &used_default);
293 if(!tmp || used_default) {
295 return -1;
296 }
297 return tmp-1;
298 }
299
300 while(**wcstr) {
303
305 *wcstr, 1,
buf, 3,
NULL, &used_default);
306 if(!
size || used_default) {
308 return -1;
309 }
311 return tmp;
312
314 mbstr[tmp++] =
buf[
i];
315 (*wcstr)++;
316 }
317
319 mbstr[tmp] = '\0';
321 }
322 return tmp;
323}
#define WideCharToMultiByte
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define WC_NO_BEST_FIT_CHARS
struct MSVCRT_localeinfo_struct * MSVCRT__locale_t
Referenced by _wcstombs_l(), and wcstombs().
◆ wcstod()
Definition at line 143 of file wcs.c.
144{
145 const wchar_t*
str = lpszStr;
146 int negative = 0;
148
150
151
152
153
154
155
158
160 {
161 negative = 1;
163 }
164
166 {
169 }
173 {
177 }
178
179 if (*
str ==
'E' || *
str ==
'e' || *
str ==
'D' || *
str ==
'd')
180 {
181 int negativeExponent = 0;
182 int exponent = 0;
184 {
185 negativeExponent = 1;
187 }
189 {
190 exponent = exponent * 10 + (*
str -
'0');
192 }
193 if (exponent != 0)
194 {
195 if (negativeExponent)
197 else
199 }
200 }
201
202 if (negative)
204
207
210}
double pow(double x, double y)
◆ wcstombs()
◆ wctomb()
Definition at line 244 of file wcs.c.
245{
248
253 }
255}
_CRTIMP int *__cdecl _errno(void)