#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 331 of file wcs.c.
332{
334}
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()
◆ wcscoll()
◆ wcscpy_s()
Definition at line 348 of file wcs.c.
349{
351
352 if(!wcDest || !numElement)
354
355 wcDest[0] = 0;
356
358 {
360 }
361
363
364 if(
size > numElement)
365 {
367 }
368
370
371 return 0;
372}
static const unsigned char *static size_t const wchar_t * wcSrc
◆ wcsncat_s()
Definition at line 435 of file wcs.c.
437{
441
443 {
444#ifndef _LIBCNT_
446#endif
448 }
452 return 0;
453
455 {
457 break;
458 }
460 {
463 }
464
466 {
469 {
472 }
473 }
474 else
477 {
481 }
485}
#define MSVCRT_INVALID_PMT(x)
#define MSVCRT_CHECK_PMT(x)
static DWORD LPDWORD LPCSTR DWORD srclen
static transitiondate dststart
◆ wcsncpy_s()
Definition at line 377 of file wcs.c.
379{
381
382 if (!wcDest || !numElement)
384
385 wcDest[0] = 0;
386
388 {
390 }
391
393
394 if (
size >= numElement)
395 {
397 }
398
401
402 return 0;
403}
◆ 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 263 of file wcs.c.
265{
267 size_t tmp = 0;
269
272 else
274
277
278 if(!mbstr)
280
282 if((*wcstr)[
i] > 255) {
284 return -1;
285 }
286
287 mbstr[
i] = (*wcstr)[
i];
288 if(!(*wcstr)[
i])
break;
289 }
291 }
292
293 if(!mbstr) {
295 *wcstr, -1,
NULL, 0,
NULL, &used_default);
296 if(!tmp || used_default) {
298 return -1;
299 }
300 return tmp-1;
301 }
302
303 while(**wcstr) {
306
308 *wcstr, 1,
buf, 3,
NULL, &used_default);
309 if(!
size || used_default) {
311 return -1;
312 }
314 return tmp;
315
317 mbstr[tmp++] =
buf[
i];
318 (*wcstr)++;
319 }
320
322 mbstr[tmp] = '\0';
324 }
325 return tmp;
326}
#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;
184 {
185 negativeExponent = 1;
187 }
189 {
192 }
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
250 return 0;
251
256 }
258}
_CRTIMP int *__cdecl _errno(void)