28 #ifndef __LIB__STRING_FUNCTIONS_H__
29 #define __LIB__STRING_FUNCTIONS_H__
42 int sw_strncmp(
char * str1,
char * str2,
int n);
52 int sw_strcmp (
const char * s1,
const char * s2);
102 char *
sw_strncpy(
char *dest,
char *src,
size_t n);
112 char *
sw_strcat(
char * dest,
const char *src);
123 char *
sw_strncat(
char * dest,
const char *src,
size_t n);
135 char *
sw_strncpy(
char *dest,
char *src,
size_t n);
146 u32
sw_sprintf(
char *print_buffer,
const char *fmt, ...);
162 char *
sw_maxstrncpy(
char * dest,
char *src,
size_t n,
size_t destLen,
char * sw_strncpy(char *dest, char *src, size_t n)
strcpy - Copy a NULL terminated string
Definition: sw_string_functions.c:135
int sw_strcmp(const char *s1, const char *s2)
strcmp - compare strings
Definition: sw_string_functions.c:163
char * sw_strncat(char *dest, const char *src, size_t n)
Definition: sw_string_functions.c:198
char * sw_strcat(char *dest, const char *src)
Definition: sw_string_functions.c:179
u32 sw_strlen(char *s)
strlen - Find the length of a string
Definition: sw_string_functions.c:94
u32 sw_sprintf(char *print_buffer, const char *fmt,...)
Definition: sw_string_functions.c:247
char * sw_strcpy(char *dest, char *src)
strcpy - Copy a NULL terminated string
Definition: sw_string_functions.c:114
char * sw_strchr(const char *s, int c)
Definition: sw_string_functions.c:224
int sw_strncmp(char *str1, char *str2, int n)
Definition: sw_string_functions.c:38
u32 sw_strtoi(char *str)
Definition: sw_string_functions.c:59
char * sw_maxstrncpy(char *dest, char *src, size_t n, size_t destLen, size_t srcLen)
Copies the first num characters of source to destination upto Null Terminate String Found...
Definition: sw_string_functions.c:273