Skip to content

My implementation of core string functions with basic error handling and test coverage. Recreates essential string operations from the C standard library.

Notifications You must be signed in to change notification settings

veranemoloko/mini-strings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mini-string

My implementation of core string functions with basic error handling and test coverage. Recreates essential string operations from the C standard library.

String Functions:

  • s21_strlen() - calculates string length with NULL safety
  • s21_strcmp() - compares strings with NULL handling
  • s21_strcpy() - safe string copying with buffer validation
  • s21_strcat() - concatenates strings with input checking
  • s21_strchr() - locates first character occurrence

Memory Functions:

  • s21_memcpy() - copies memory blocks with overlap protection
  • s21_memset() - fills memory with constant byte
  • s21_strstr() - finds substring with boundary checks

Testing:

The project includes test cases covering:

  • Normal operation scenarios
  • Edge cases (NULL pointers, empty strings)
  • Buffer boundary conditions
  • Character search functionality

About

My implementation of core string functions with basic error handling and test coverage. Recreates essential string operations from the C standard library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published