#include <precomp.h>
#include <mbctype.h>
#include <specstrings.h>
Go to the source code of this file.
◆ _Success_()
Definition at line 13 of file _mbstrnlen.c.
21{
22 size_t cchCount = 0;
23 unsigned char jMbsByte;
24
25
27 {
29 return -1;
30 }
31
32
33 while (cjMaxLen-- > 0)
34 {
35
36 jMbsByte = *pmbstr++;
37
38
39 if (jMbsByte == 0) break;
40
41
43 {
44
45 continue;
46 }
47
48
49 cchCount++;
50 }
51
52 return cchCount;
53}
#define MSVCRT_CHECK_PMT(x)
int __cdecl _ismbblead(unsigned int)
errno_t __cdecl _set_errno(_In_ int _Value)