summaryrefslogtreecommitdiff
path: root/src/shared/mem.h
blob: 8c83f2fef39ec9165191446dd3e4948b9c468c03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once
#include <stddef.h>

/* note: (partially) tested in the userland tests */

void *memchr(const void *s, int c, size_t n);
int memcmp(const void *s1, const void *s2, size_t n);

void *memcpy(void *dest, const void *src, size_t n);
void *memset(void *s, int c, size_t n);

int strcmp(const char *s1, const char *s2);
size_t strlen(const char *s);