Pyrogenesis  trunk
Namespaces | Macros | Functions | Variables
secure_crt.h File Reference
#include <stdarg.h>
#include "lib/status.h"
Include dependency graph for secure_crt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ERR
 

Introduction


 

Macros

#define EMULATE_SECURE_CRT   1
 
#define scanf_s   scanf
 
#define wscanf_s   wscanf
 
#define fscanf_s   fscanf
 
#define fwscanf_s   fwscanf
 
#define sscanf_s   sscanf
 
#define swscanf_s   swscanf
 

Functions

size_t strnlen (const char *str, size_t max_len)
 
size_t wcsnlen (const wchar_t *str, size_t max_len)
 
int strncpy_s (char *dst, size_t max_dst_chars, const char *src, size_t max_src_chars)
 
int wcsncpy_s (wchar_t *dst, size_t max_dst_chars, const wchar_t *src, size_t max_src_chars)
 
int strcpy_s (char *dst, size_t max_dst_chars, const char *src)
 
int wcscpy_s (wchar_t *dst, size_t max_dst_chars, const wchar_t *src)
 
int strncat_s (char *dst, size_t max_dst_chars, const char *src, size_t max_src_chars)
 
int wcsncat_s (wchar_t *dst, size_t max_dst_chars, const wchar_t *src, size_t max_src_chars)
 
int strcat_s (char *dst, size_t max_dst_chars, const char *src)
 
int wcscat_s (wchar_t *dst, size_t max_dst_chars, const wchar_t *src)
 
int vsprintf_s (char *dst, size_t max_dst_chars, const char *fmt, va_list ap) VPRINTF_ARGS(3)
 
int vswprintf_s (wchar_t *dst, size_t max_dst_chars, const wchar_t *fmt, va_list ap) VWPRINTF_ARGS(3)
 
int sprintf_s (char *buf, size_t max_chars, const char *fmt,...) PRINTF_ARGS(3)
 
int swprintf_s (wchar_t *buf, size_t max_chars, const wchar_t *fmt,...) WPRINTF_ARGS(3)
 

Variables

const Status ERR::STRING_NOT_TERMINATED = -100600
 

Macro Definition Documentation

◆ EMULATE_SECURE_CRT

#define EMULATE_SECURE_CRT   1

◆ fscanf_s

#define fscanf_s   fscanf

◆ fwscanf_s

#define fwscanf_s   fwscanf

◆ scanf_s

#define scanf_s   scanf

◆ sscanf_s

#define sscanf_s   sscanf

◆ swscanf_s

#define swscanf_s   swscanf

◆ wscanf_s

#define wscanf_s   wscanf

Function Documentation

◆ sprintf_s()

int sprintf_s ( char *  buf,
size_t  max_chars,
const char *  fmt,
  ... 
)

◆ strcat_s()

int strcat_s ( char *  dst,
size_t  max_dst_chars,
const char *  src 
)

◆ strcpy_s()

int strcpy_s ( char *  dst,
size_t  max_dst_chars,
const char *  src 
)

◆ strncat_s()

int strncat_s ( char *  dst,
size_t  max_dst_chars,
const char *  src,
size_t  max_src_chars 
)

◆ strncpy_s()

int strncpy_s ( char *  dst,
size_t  max_dst_chars,
const char *  src,
size_t  max_src_chars 
)

◆ strnlen()

size_t strnlen ( const char *  str,
size_t  max_len 
)

◆ swprintf_s()

int swprintf_s ( wchar_t *  buf,
size_t  max_chars,
const wchar_t *  fmt,
  ... 
)

◆ vsprintf_s()

int vsprintf_s ( char *  dst,
size_t  max_dst_chars,
const char *  fmt,
va_list  ap 
)

◆ vswprintf_s()

int vswprintf_s ( wchar_t *  dst,
size_t  max_dst_chars,
const wchar_t *  fmt,
va_list  ap 
)

◆ wcscat_s()

int wcscat_s ( wchar_t *  dst,
size_t  max_dst_chars,
const wchar_t *  src 
)

◆ wcscpy_s()

int wcscpy_s ( wchar_t *  dst,
size_t  max_dst_chars,
const wchar_t *  src 
)

◆ wcsncat_s()

int wcsncat_s ( wchar_t *  dst,
size_t  max_dst_chars,
const wchar_t *  src,
size_t  max_src_chars 
)

◆ wcsncpy_s()

int wcsncpy_s ( wchar_t *  dst,
size_t  max_dst_chars,
const wchar_t *  src,
size_t  max_src_chars 
)

◆ wcsnlen()

size_t wcsnlen ( const wchar_t *  str,
size_t  max_len 
)