From 551a75742997c0f68b95a3439803410af8535211 Mon Sep 17 00:00:00 2001 From: kamkow1 Date: Fri, 13 Feb 2026 01:03:35 +0100 Subject: [PATCH] Doc comment libstring string.h --- libstring/string.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libstring/string.h b/libstring/string.h index 3ab38ca..37406b5 100644 --- a/libstring/string.h +++ b/libstring/string.h @@ -4,10 +4,19 @@ #include #include +/* Set block of memory */ size_t memset (void* dst, uint8_t b, size_t n); + +/* Copy memory from src to dst */ size_t memcpy (void* dst, const void* src, size_t n); + +/* Copy n chars from string */ void strncpy (char* dst, const char* src, size_t n); + +/* Count chars in a string */ size_t strlen (const char* str); + +/* Compare blocks of memory */ int memcmp (const void* s1, const void* s2, size_t n); #endif // _LIBSTRING_STRING_H