Files
mop3/libstring/string.h
kamkow1 02e77b5c90
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m36s
CE interactive shell
2026-02-21 22:14:16 +01:00

35 lines
881 B
C

#ifndef _LIBSTRING_STRING_H
#define _LIBSTRING_STRING_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
typedef bool (*strtokenize_cb_func_t) (void* ctx, const char* start, size_t len);
/* 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);
/* tokenize a string */
void strtokenize (const char* str, char delim, void* ctx, strtokenize_cb_func_t cb);
/* compare strings */
int strcmp (const char* s1, const char* s2);
/* concatinate strings */
char* strcat (char* dest, const char* src);
#endif // _LIBSTRING_STRING_H