File Index Symbol Index

//
// string.h
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// The C Standard Library <string.h> header.
//
#pragma once
#ifndef _INC_STRING // include guard for 3rd party interop
#define _INC_STRING
#include <corecrt.h> #include <corecrt_memory.h> #include <corecrt_wstring.h>
#include <vcruntime_string.h>
#ifndef __midl
#define _NLSCMPERROR _CRT_INT_MAX // currently == INT_MAX
#if __STDC_WANT_SECURE_LIB__
_Check_return_wat_
);
_Check_return_wat_
);
_Check_return_wat_
_Check_return_wat_
);
_Check_return_wat_
);
_Check_return_
);
#endif // __STDC_WANT_SECURE_LIB__
);
#ifndef RC_INVOKED
#pragma warning(push) #pragma warning(pop)
#endif // RC_INVOKED
_Check_return_
int
__cdecl
strcmp
( );
_Check_return_
);
_Check_return_
);
_Check_return_
); #pragma warning(push) #pragma warning(pop)
_Check_return_
);
#if defined _DEBUG && defined _CRTDBG_MAP_ALLOC
#pragma push_macro("_strdup")
#undef _strdup #endif
_Check_return_
);
#if defined _DEBUG && defined _CRTDBG_MAP_ALLOC
#pragma pop_macro("_strdup") #endif
_Ret_z_
_Success_(return != 0)
);
_Check_return_wat_
);
_Ret_z_
);
_Check_return_
);
_Check_return_
);
_Check_return_
);
_Check_return_
);
_Check_return_
size_t
__cdecl
strlen
( );
_Check_return_wat_
);
_Check_return_wat_
);
_Check_return_
);
_Check_return_
);
_Check_return_
);
_Check_return_
);
_Check_return_
);
_Check_return_
);
_Check_return_
); );
_Check_return_
_When_( _MaxCount > _String_length_(_String), _Post_satisfies_(return == _String_length_(_String)) )
_When_( _MaxCount <= _String_length_(_String), _Post_satisfies_(return == _MaxCount) )
);
#if __STDC_WANT_SECURE_LIB__ && !defined __midl
_Check_return_
_When_( _MaxCount > _String_length_(_String), _Post_satisfies_(return == _String_length_(_String)) )
_When_( _MaxCount <= _String_length_(_String), _Post_satisfies_(return == _MaxCount) )
) {
return
_String
==
0
?
0
:
strnlen
(
_String
,
_MaxCount
); }
#endif
_Check_return_wat_
);
_Check_return_
); );
_Check_return_wat_
);
_Check_return_
); );
_Check_return_wat_
);
_Check_return_wat_
);
_Success_(return < _MaxCount)
_Check_return_opt_
);
_Success_(return < _MaxCount)
_Check_return_opt_
);
#ifdef __cplusplus
extern
"C++"
{
_Check_return_
{
return
const_cast
<
char
*>(
strchr
(
static_cast
<
char
const
*>(
_String
),
_Ch
)); }
_Check_return_
{
return
const_cast
<
char
*>(
strpbrk
(
static_cast
<
char
const
*>(
_String
),
_Control
)); }
_Check_return_
{
return
const_cast
<
char
*>(
strrchr
(
static_cast
<
char
const
*>(
_String
),
_Ch
)); }
_Check_return_ _Ret_maybenull_
{
return
const_cast
<
char
*>(
strstr
(
static_cast
<
char
const
*>(
_String
),
_SubString
)); } }
#endif // __cplusplus
#if _CRT_INTERNAL_NONSTDC_NAMES
#pragma push_macro("strdup")
#undef strdup
);
#pragma pop_macro("strdup")
// Declarations of functions defined in oldnames.lib:
); ); ); ); ); );
char
*
__cdecl
strset
( );
#endif // _CRT_INTERNAL_NONSTDC_NAMES
#endif // !__midl #endif // _INC_STRING