kern/lib/c/include/wchar.h
fef f8a85a1541
happy new year 2022 uwu
May it be slightly less exhausting than 2021.
2022-01-01 03:49:33 +01:00

63 lines
1.9 KiB
C

/* Copyright (C) 2021,2022 fef <owo@fef.moe>. All rights reserved. */
/*
* i'm *really* tired right now and i don't see a real reason to write fucking
* documentation for these because they are completely POSIX conforming anyway,
* so i'll just defer that to later(TM).
*/
#pragma once
#include <arch/limits.h>
#include <gay/types.h>
wchar_t *wcpcpy(wchar_t *__restrict to, const wchar_t *__restrict from);
wchar_t *wcpncpy(wchar_t *__restrict dst, const wchar_t *__restrict src, usize n);
wchar_t *wcscat(wchar_t *__restrict s1, const wchar_t *__restrict s2);
wchar_t *wcschr(const wchar_t *s, wchar_t c);
int wcscmp(const wchar_t *s1, const wchar_t *s2);
wchar_t *wcscpy(wchar_t *__restrict s1, const wchar_t *__restrict s2);
usize wcscspn(const wchar_t *s, const wchar_t *set);
wchar_t *wcsdup(const wchar_t *s);
usize wcslcat(wchar_t *dst, const wchar_t *src, usize siz);
usize wcslcpy(wchar_t *dst, const wchar_t *src, usize siz);
usize wcslen(const wchar_t *s);
wchar_t *wcsncat(wchar_t *__restrict s1, const wchar_t *__restrict s2, usize n);
int wcsncmp(const wchar_t *s1, const wchar_t *s2, usize n);
wchar_t *wcsncpy(wchar_t *__restrict dst, const wchar_t *__restrict src, usize n);
usize wcsnlen(const wchar_t *s, usize maxlen);
wchar_t *wcspbrk(const wchar_t *s, const wchar_t *set);
wchar_t *wcsrchr(const wchar_t *s, wchar_t c);
usize wcsspn(const wchar_t *s, const wchar_t *set);
wchar_t *wcsstr(const wchar_t *__restrict s, const wchar_t *__restrict find);
wchar_t *wcstok(wchar_t *__restrict s, const wchar_t *__restrict delim, wchar_t **__restrict last);
wchar_t *wmemchr(const wchar_t *s, wchar_t c, usize n);
int wmemcmp(const wchar_t *s1, const wchar_t *s2, usize n);
wchar_t *wmemcpy(wchar_t *__restrict d, const wchar_t *__restrict s, usize n);
wchar_t *wmemmove(wchar_t *d, const wchar_t *s, usize n);
wchar_t *wmemset(wchar_t *s, wchar_t c, usize n);