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

long strtol(const char *restrict s, char **restrict end, int base);
char *strchr(const char *s, int c);

size_t strspn(const char *s, const char *accept);
size_t strcspn(const char *s, const char *reject);

char *strtok(char *restrict s, const char *restrict sep);
char *strtok_r(char *restrict s, const char *restrict sep, char **restrict state);

int strncmp(const char *s1, const char *s2, size_t n);