Skip to content

Latest commit

 

History

History
147 lines (100 loc) · 4.16 KB

strings.asc

File metadata and controls

147 lines (100 loc) · 4.16 KB

strings

_strcasecmp

int _strcasecmp(const char*c1,const char*c2,int len)
Defines: tolower
Size: ~44B ../src/string/strcasecmp.c l.5

_strcmp

int _strcmp(const char *s1, const char *s2, int n)
Size: ~44B ../src/string/strcmp.c l.10

sprintf

#define sprintf(str,…​) snprintf( str, mini_buf, VA_ARGS)
Defines: write strlen getpid kill
print formatted output

I'm really uncertain about the size arg here, amongst others
 these are just misdefined functions, inhaerent insecure. :/
 If possible, do not use sprintf. Use snprintf instead.
strcasecmp

int strcasecmp(const char*c1,const char*c2)
../src/string/strcasecmp.c l.26 manpage: strcasecmp

strcat

char strcat(char *dest, const char *src )
*Defines:
strlen
concatenate two strings Size: ~126B ../src/string/strcat.c l.5 manpage: strcat

strchr

char strchr(const char *s, int c)
*Defines:
strchrnul
string scanning operation Size: ~104B ../src/string/strchr.c l.6 manpage: strchr

strchrnul

char strchrnul(const char *s, int c)
*locate character in string
Size: ~87B ../src/string/strchrnul.c l.3 manpage: strchrnul

strcmp

int strcmp(const char*c1,const char*c2)
compare two strings Size: ~32B ../src/string/strcmp.c l.36 manpage: strcmp

strcpy

char strcpy(char *dest, const char *src)
*copy a string and return a pointer to the end of the result
Size: ~84B ../src/string/strcpy.c l.3 manpage: strcpy

strdup

char strdup(const char *source)
*Defines:
strcpy 0 strlen
duplicate a specific number of bytes from a string Size: ~258B ../src/string/strdup.c l.7 manpage: strdup

strlen

int strlen(const char*str)
get length of fixed size string

return len of str.
 if str points to 0, return 0

Size: ~32B ../src/string/strlen.c l.6 manpage: strlen

strncasecmp

int strncasecmp(const char*c1,const char*c2,int len)
case-insensitive string comparisons ../src/string/strcasecmp.c l.34 manpage: strncasecmp

strncmp

int strncmp(const char*c1,const char*c2,int len)
compare part of two strings Size: ~44B ../src/string/strcmp.c l.44 manpage: strncmp

strncpy

char strncpy(char *dest, const char *src, int n)
*copy fixed length string, returning a pointer to the array end

copy max n chars from src to dest,
 write 0's up to src[n] when len of dest < n
 Please note strlcpy (borrowed from freebsd),
 which does the same,
 but doesn't pad dest with 0's.

Size: ~96B ../src/string/strncpy.c l.7 manpage: strncpy

strrchr

char strrchr(const char *s, int c)
*Defines:
strchrnul
string scanning operation Size: ~122B ../src/string/strrchr.c l.4 manpage: strrchr

strstr

char* strstr(const char big, const char *little)
*find a substring
Size: ~104B ../src/string/strstr.c l.3 manpage: strstr