27 #ifndef INCLUDED_SECURE_CRT 28 #define INCLUDED_SECURE_CRT 41 # define EMULATE_SECURE_CRT 0 43 # define EMULATE_SECURE_CRT 1 47 #if EMULATE_SECURE_CRT 50 #if !OS_UNIX || OS_MACOSX || OS_OPENBSD 56 #if !OS_OPENBSD && !OS_MACOSX 57 extern size_t strnlen(
const char* str,
size_t max_len);
59 extern size_t wcsnlen(
const wchar_t* str,
size_t max_len);
69 extern int strncpy_s(
char* dst,
size_t max_dst_chars,
const char* src,
size_t max_src_chars);
70 extern int wcsncpy_s(
wchar_t* dst,
size_t max_dst_chars,
const wchar_t* src,
size_t max_src_chars);
78 extern int strcpy_s(
char* dst,
size_t max_dst_chars,
const char* src);
79 extern int wcscpy_s(
wchar_t* dst,
size_t max_dst_chars,
const wchar_t* src);
86 extern int strncat_s(
char* dst,
size_t max_dst_chars,
const char* src,
size_t max_src_chars);
87 extern int wcsncat_s(
wchar_t* dst,
size_t max_dst_chars,
const wchar_t* src,
size_t max_src_chars);
95 extern int strcat_s(
char* dst,
size_t max_dst_chars,
const char* src);
96 extern int wcscat_s(
wchar_t* dst,
size_t max_dst_chars,
const wchar_t* src);
114 #define scanf_s scanf 115 #define wscanf_s wscanf 116 #define fscanf_s fscanf 117 #define fwscanf_s fwscanf 118 #define sscanf_s sscanf 119 #define swscanf_s swscanf 121 #endif // #if EMULATE_SECURE_CRT 122 #endif // #ifndef INCLUDED_SECURE_CRT int wcsncat_s(wchar_t *dst, size_t max_dst_chars, const wchar_t *src, size_t max_src_chars)
#define VPRINTF_ARGS(fmtpos)
Definition: code_annotation.h:256
const Status STRING_NOT_TERMINATED
Definition: secure_crt.h:36
int vsprintf_s(char *dst, size_t max_dst_chars, const char *fmt, va_list ap) VPRINTF_ARGS(3)
size_t strnlen(const char *str, size_t max_len)
int strncat_s(char *dst, size_t max_dst_chars, const char *src, size_t max_src_chars)
#define PRINTF_ARGS(fmtpos)
Definition: code_annotation.h:255
int swprintf_s(wchar_t *buf, size_t max_chars, const wchar_t *fmt,...) WPRINTF_ARGS(3)
int sprintf_s(char *buf, size_t max_chars, const char *fmt,...) PRINTF_ARGS(3)
int wcscpy_s(wchar_t *dst, size_t max_dst_chars, const wchar_t *src)
int wcsncpy_s(wchar_t *dst, size_t max_dst_chars, const wchar_t *src, size_t max_src_chars)
#define VWPRINTF_ARGS(fmtpos)
Definition: code_annotation.h:258
int strcat_s(char *dst, size_t max_dst_chars, const char *src)
i64 Status
Error handling system.
Definition: status.h:169
Introduction
Definition: debug.h:407
#define WPRINTF_ARGS(fmtpos)
Definition: code_annotation.h:257
int strncpy_s(char *dst, size_t max_dst_chars, const char *src, size_t max_src_chars)
int wcscat_s(wchar_t *dst, size_t max_dst_chars, const wchar_t *src)
size_t wcsnlen(const wchar_t *str, size_t max_len)
int strcpy_s(char *dst, size_t max_dst_chars, const char *src)
int vswprintf_s(wchar_t *dst, size_t max_dst_chars, const wchar_t *fmt, va_list ap) VWPRINTF_ARGS(3)