18#define strlen(s) __builtin_strlen(s)
20char *
strcpy(
char *dst,
const char *src);
21#define strcpy(d, s) __builtin_strcpy(d, s)
23char *
strncpy(
char *dst,
const char *src,
size_t n);
24#define strncpy(d, s, n) __builtin_strncpy(d, s, n)
26int strcmp(
const char *s1,
const char *s2);
27#define strcmp(s1, s2) __builtin_strcmp(s1, s2)
29int strncmp(
const char *s1,
const char *s2,
size_t n);
30#define strncmp(s1, s2, n) __builtin_strncmp(s1, s2, n)
32void *
memset(
void *s,
int c,
size_t n);
33#define memset(d, c, n) __builtin_memset(d, c, n)
35void *
memcpy(
void *dst,
const void *src,
size_t n);
36#define memcpy(d, s, n) __builtin_memcpy(d, s, n)
38int memcmp(
const void *s1,
const void *s2,
size_t n);
39#define memcmp(s1, s2, n) __builtin_memcmp(s1, s2, n)
48#define LF_TO_CRLF (1u << 7)
60 snprintf(
char *buf,
size_t size, const
char *fmt, ...);
63char *
fmt_number(
char *
str,
char *end,
long long val,
unsigned int base,
64 int width,
int precision,
unsigned int flags);
66 int width,
int precision,
unsigned int flags);
70 char **
str,
char *end, const
char **fmt_ptr, const
void *arg,
71 int width,
int precision,
unsigned int flags);
static unsigned int str(void)
size_t strnlen(const char *str, size_t max)
int vsnprintf_internal(char *buf, size_t size, const char *fmt, va_list args, unsigned int flags)
char * fmt_string(char *str, char *end, const char *val, int width, int precision, unsigned int flags)
#define strncmp(s1, s2, n)
bool arch_fmt_pointer(char **str, char *end, const char **fmt_ptr, const void *arg, int width, int precision, unsigned int flags)
#define memcmp(s1, s2, n)
char * fmt_number(char *str, char *end, long long val, unsigned int base, int width, int precision, unsigned int flags)
int snprintf(char *buf, size_t size, const char *fmt,...)
static int vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
__builtin_va_list va_list
Common declarations for all tests.