Files
mop3/libstring/string.h

23 lines
528 B
C

#ifndef _LIBSTRING_STRING_H
#define _LIBSTRING_STRING_H
#include <stddef.h>
#include <stdint.h>
/* 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