Skip to content

Almost complete rewrite of standard C library string.h

Notifications You must be signed in to change notification settings

zertmark/strings.h

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

strings.h

Almost complete rewrite of standard C library string.h

Functions comparison

Functions from my library Functions from standard library
int memory_compare (void *, void *, size_t ) int memcmp ( const void * , const void * , size_t )
void *locate_char_in_memory (const void *, int, size_t ) char * strcat ( char * , const char * );
void *memory_copy ( void *, const void *, size_t ) void * memcpy ( void * , const void * , size_t )
void *memory_move (void *, const void *, size_t ) void * memmove ( void * , const void * ,size_t )
void memory_set (void *, int , size_t ) void * memset ( void * , int , size_t )
int string_compare (const char *, const char * ) int strcmp ( const char * , const char * )
int string_comparen (const char *, const char *, size_t ) int strncmp ( const char * , const char * , size_t )
size_t string_span (const char *, const char * ) size_t strspn ( const char * , const char * )
char *string_copy (char *, const char * ) char * strcpy ( char *, const char * )
char *locate_sub_string (char *, char * ) char * strstr ( const char *, const char * )
char *locate_any_characters_in_string (const char *, const char * ) char * strpbrk ( const char *, const char * )
char *locate_char_in_string (const char *, int ) char * strchr ( const char *, int )
char *string_ncopy (char *, const char *, size_t ) char * strncpy ( char *, const char *, size_t )
char *locate_last_char_in_string (const char *, int ) char * strrchr ( const char *, int )
char *concat (char *, const char * ) char * strcat ( char *, const char * );
char *concatn (char *, const char *, size_t ) char * strncat ( char *, const char *, size_t )
size_t string_span_c (const char *, const char * ) size_t strcspn ( const char * , const char * )
size_t string_len (const char * ) size_t strlen ( const char * )
int max (const int , const int )
int min (const int , const int )
char *create_string_in_heap (char * )
size_t is_sub_string_in (const char *, const char * )
size_t is_char_in_string (const char *, int )

Functions that haven't been written yet:

Function name Full function name
strcoll int strcoll ( const char * , const char * )
strxfrm size_t strxfrm ( char * , const char * , size_t )
strtok char * strtok ( char * , const char * )
strerror char * strerror ( int )

About

Almost complete rewrite of standard C library string.h

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages