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