ReactOS 0.4.16-dev-1041-g8b6907f
corecrt_internal_string_templates.h File Reference
Include dependency graph for corecrt_internal_string_templates.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename Character >
 _Success_ (return==0) static errno_t __cdecl common_tcscat_s(_Inout_updates_z_(size_in_elements) Character *const destination
 
size_t const _In_z_ Character const *const source throw ()
 
_In_ size_t const _In_reads_or_z_ (count) Character const *const source
 

Variables

size_t const size_in_elements
 
_In_ size_t const _In_ Character const value
 

Function Documentation

◆ _In_reads_or_z_()

_In_ size_t const _In_reads_or_z_ ( count  ) const

◆ _Success_()

template<typename Character >
_Success_ ( return  = = 0) const

◆ throw()

size_t const _In_z_ Character const *const source throw ( )

Definition at line 23 of file corecrt_internal_string_templates.h.

24{
27
28 Character* destination_it = destination;
30 while (available > 0 && *destination_it != 0)
31 {
32 ++destination_it;
33 --available;
34 }
35
36 if (available == 0)
37 {
38 _RESET_STRING(destination, size_in_elements);
40 }
41
42 Character const* source_it = source;
43 while ((*destination_it++ = *source_it++) != 0 && --available > 0)
44 {
45 }
46
47 if (available == 0)
48 {
49 _RESET_STRING(destination, size_in_elements);
51 }
54}
#define _RETURN_DEST_NOT_NULL_TERMINATED(_String, _Size)
#define _FILL_STRING
#define _RETURN_BUFFER_TOO_SMALL(_String, _Size)
#define _RESET_STRING(_String, _Size)
#define _RETURN_NO_ERROR
#define _VALIDATE_POINTER_RESET_STRING(_Pointer, _String, _Size)
#define _VALIDATE_STRING(_String, _Size)
size_t const size_in_elements
static WCHAR available[MAX_STRING_RESOURCE_LEN]
Definition: object.c:2336

Variable Documentation

◆ size_in_elements

◆ value

Definition at line 232 of file corecrt_internal_string_templates.h.