Doc comment libstring string.h

This commit is contained in:
2026-02-13 01:03:35 +01:00
parent 3f37cbce49
commit 551a757429

View File

@@ -4,10 +4,19 @@
#include <stddef.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
/* Set block of memory */
size_t memset (void* dst, uint8_t b, size_t n); 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); 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); void strncpy (char* dst, const char* src, size_t n);
/* Count chars in a string */
size_t strlen (const char* str); size_t strlen (const char* str);
/* Compare blocks of memory */
int memcmp (const void* s1, const void* s2, size_t n); int memcmp (const void* s1, const void* s2, size_t n);
#endif // _LIBSTRING_STRING_H #endif // _LIBSTRING_STRING_H