FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
string.c File Reference

Functions

int32_t memcmp (const void *str1, const void *str2, size_t n)
 
void * memcpy (void *str1, const void *str2, size_t n)
 
void * memset (void *str, int32_t c, size_t n)
 
int32_t strcmp (const char *str1, const char *str2)
 
int strncmp (const char *str1, const char *str2, size_t n)
 
int str_starts_with (const char *str1, const char *str2)
 
int str_ends_with (const char *str1, const char *str2)
 
size_t strlen (const char *str)
 
char * strcat (char *str1, const char *str2)
 
char * strcpy (char *str1, const char *str2)
 
size_t strspn (const char *s1, const char *s2)
 
size_t strcspn (const char *s1, const char *s2)
 
char * strchr (const char *s, int c)
 

Function Documentation

int32_t memcmp ( const void *  str1,
const void *  str2,
size_t  n 
)
int str_ends_with ( const char *  str1,
const char *  str2 
)

References strlen().

int str_starts_with ( const char *  str1,
const char *  str2 
)

References strlen(), and strncmp().

char* strcat ( char *  str1,
const char *  str2 
)

References strlen().

char* strchr ( const char *  s,
int  c 
)
int32_t strcmp ( const char *  str1,
const char *  str2 
)

Referenced by TEST_CASE().

char* strcpy ( char *  str1,
const char *  str2 
)
size_t strcspn ( const char *  s1,
const char *  s2 
)
size_t strlen ( const char *  str)
int strncmp ( const char *  str1,
const char *  str2,
size_t  n 
)

Referenced by str_starts_with(), and TEST_CASE().

size_t strspn ( const char *  s1,
const char *  s2 
)