STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
vcruntime_string.h
Go to the documentation of this file.
1 //
2 // vcruntime_string.h
3 //
4 // Copyright (c) Microsoft Corporation. All rights reserved.
5 //
6 // <string.h> functionality that is implemented in the VCRuntime.
7 //
8 #pragma once
9 
10 #include <vcruntime.h>
11 
12 #ifndef __midl
13 
15 
16 
17 
19 _VCRTIMP void _CONST_RETURN* __cdecl memchr(
20  _In_reads_bytes_opt_(_MaxCount) void const* _Buf,
21  _In_ int _Val,
22  _In_ size_t _MaxCount
23  );
24 
26 int __cdecl memcmp(
27  _In_reads_bytes_(_Size) void const* _Buf1,
28  _In_reads_bytes_(_Size) void const* _Buf2,
29  _In_ size_t _Size
30  );
31 
33 _Post_equal_to_(_Dst)
35  (unsigned char*)_Dst,
37  _Size,
38  _Post_satisfies_(((unsigned char*)_Dst)[_Iter_] == ((unsigned char*)_Src)[_Iter_])
39 )
40 void* __cdecl memcpy(
41  _Out_writes_bytes_all_(_Size) void* _Dst,
42  _In_reads_bytes_(_Size) void const* _Src,
43  _In_ size_t _Size
44  );
45 
47 _VCRTIMP void* __cdecl memmove(
48  _Out_writes_bytes_all_opt_(_Size) void* _Dst,
49  _In_reads_bytes_opt_(_Size) void const* _Src,
50  _In_ size_t _Size
51  );
52 
53 _Post_equal_to_(_Dst)
55  (unsigned char*)_Dst,
56  _Iter_,
57  _Size,
58  _Post_satisfies_(((unsigned char*)_Dst)[_Iter_] == _Val)
59 )
60 void* __cdecl memset(
61  _Out_writes_bytes_all_(_Size) void* _Dst,
62  _In_ int _Val,
63  _In_ size_t _Size
64  );
65 
67 _VCRTIMP char _CONST_RETURN* __cdecl strchr(
68  _In_z_ char const* _Str,
69  _In_ int _Val
70  );
71 
73 _VCRTIMP char _CONST_RETURN* __cdecl strrchr(
74  _In_z_ char const* _Str,
75  _In_ int _Ch
76  );
77 
79 _VCRTIMP char _CONST_RETURN* __cdecl strstr(
80  _In_z_ char const* _Str,
81  _In_z_ char const* _SubStr
82  );
83 
85 _When_(return != NULL, _Ret_range_(_Str, _Str + _String_length_(_Str) - 1))
86 _VCRTIMP wchar_t _CONST_RETURN* __cdecl wcschr(
87  _In_z_ wchar_t const* _Str,
88  _In_ wchar_t _Ch
89  );
90 
92 _VCRTIMP wchar_t _CONST_RETURN* __cdecl wcsrchr(
93  _In_z_ wchar_t const* _Str,
94  _In_ wchar_t _Ch
95  );
96 
98 _When_(return != NULL, _Ret_range_(_Str, _Str + _String_length_(_Str) - 1))
99 _VCRTIMP wchar_t _CONST_RETURN* __cdecl wcsstr(
100  _In_z_ wchar_t const* _Str,
101  _In_z_ wchar_t const* _SubStr
102  );
103 
104 
105 
107 
108 #endif // __midl
#define _In_reads_bytes_opt_(size)
Definition: sal.h:319
#define _VCRTIMP
Definition: vcruntime.h:115
_VCRTIMP void *__cdecl memmove(_Out_writes_bytes_all_opt_(_Size) void *_Dst, _In_reads_bytes_opt_(_Size) void const *_Src, _In_ size_t _Size)
#define NULL
Definition: vcruntime.h:236
Definition: regex:1539
_Check_return_ int __cdecl memcmp(_In_reads_bytes_(_Size) void const *_Buf1, _In_reads_bytes_(_Size) void const *_Buf2, _In_ size_t _Size)
#define _Ret_maybenull_
Definition: sal.h:526
_Iter_
Definition: vcruntime_string.h:36
_In_reads_bytes_(_Size) void const *_Src
_In_ int _Val
Definition: vcruntime_string.h:62
#define _CRT_BEGIN_C_HEADER
Definition: vcruntime.h:73
_Check_return_ _VCRTIMP wchar_t _CONST_RETURN *__cdecl wcsrchr(_In_z_ wchar_t const *_Str, _In_ wchar_t _Ch)
#define _Ret_range_(lb, ub)
Definition: sal.h:570
_Post_equal_to_(_Dst) _At_buffer_((unsigned char *) _Dst
#define _CONST_RETURN
Definition: vcruntime.h:185
#define _Out_writes_bytes_all_(size)
Definition: sal.h:359
_CRT_BEGIN_C_HEADER _Check_return_ _VCRTIMP void _CONST_RETURN *__cdecl memchr(_In_reads_bytes_opt_(_MaxCount) void const *_Buf, _In_ int _Val, _In_ size_t _MaxCount)
#define _Check_return_
Definition: sal.h:554
_Check_return_ _Ret_maybenull_ _VCRTIMP char _CONST_RETURN *__cdecl strstr(_In_z_ char const *_Str, _In_z_ char const *_SubStr)
_Check_return_ _In_ wchar_t _Ch
Definition: vcruntime_string.h:89
#define _In_z_
Definition: sal.h:310
#define _In_
Definition: sal.h:305
#define _Out_writes_bytes_all_opt_(size)
Definition: sal.h:360
_Post_satisfies_(((unsigned char *) _Dst)[_Iter_]==((unsigned char *) _Src)[_Iter_])) void *__cdecl memcpy(_Out_writes_bytes_all_(_Size) void *_Dst
_Check_return_ _VCRTIMP char _CONST_RETURN *__cdecl strrchr(_In_z_ char const *_Str, _In_ int _Ch)
#define _CRT_INSECURE_DEPRECATE_MEMORY(_Replacement)
Definition: vcruntime.h:283
#define _CRT_END_C_HEADER
Definition: vcruntime.h:76
#define _At_buffer_(target, iter, bound, annos)
Definition: sal.h:247
_Check_return_ _VCRTIMP char _CONST_RETURN *__cdecl strchr(_In_z_ char const *_Str, _In_ int _Val)
return(_PAIR_TYPE(_FwdIt)(_First, _First))
_Check_return_ _When_(return!=NULL, _Ret_range_(_Str, _Str+_String_length_(_Str)-1)) _VCRTIMP wchar_t _CONST_RETURN *__cdecl wcschr(_In_z_ wchar_t const *_Str
_Check_return_ _Ret_maybenull_ _In_z_ wchar_t const * _SubStr
Definition: vcruntime_string.h:102
_Size
Definition: vcruntime_string.h:36