miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
string.h
Go to the documentation of this file.
1// MIT License
2//
3// Copyright (c) 2026 Christian Spoo
4//
5// Permission is hereby granted, free of charge, to any person obtaining a copy
6// of this software and associated documentation files (the "Software"), to deal
7// in the Software without restriction, including without limitation the rights
8// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9// copies of the Software, and to permit persons to whom the Software is
10// furnished to do so, subject to the following conditions:
11//
12// The above copyright notice and this permission notice shall be included in all
13// copies or substantial portions of the Software.
14//
15// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21// SOFTWARE.
22
23#ifndef _STRING_H_
24#define _STRING_H_
25
26#include <miniOS/types.h>
27#include <stdarg.h>
28
29void *memset(void *s, int c, size_t size);
30void *memcpy(void *dest, const void *src, size_t n);
31void *memmove(void *dest, const void *src, size_t n);
32int memcmp(const void *s1, const void *s2, size_t n);
33char *strcpy(char *destination, const char *source);
34char *strncpy(char *dest, const char *src, size_t n);
35size_t strlen(const char *str);
36int strncmp(const char *s1, const char *s2, size_t n);
37char* strcat(char* destination, const char* source);
38int isdigit(int c);
39
40int vsnprintf (char *str, size_t size, const char* format, va_list list);
41__attribute__ ((format (printf, 3, 4))) int snprintf (char *str, size_t size, const char* format, ...);
42
43#endif
uint16_t size
Definition irq.h:0
__builtin_va_list va_list
Definition stdarg.h:35
size_t strlen(const char *str)
Definition strlen.c:25
int strncmp(const char *s1, const char *s2, size_t n)
Definition strncmp.c:25
void * memmove(void *dest, const void *src, size_t n)
Definition memmove.c:25
int isdigit(int c)
Definition isdigit.c:25
char * strcat(char *destination, const char *source)
Definition strcat.c:25
char * strncpy(char *dest, const char *src, size_t n)
Definition strncpy.c:25
size_t const char * format
Definition string.h:41
int memcmp(const void *s1, const void *s2, size_t n)
Definition memcmp.c:25
void * memcpy(void *dest, const void *src, size_t n)
Definition memcpy.c:25
void * memset(void *s, int c, size_t size)
Definition memset.c:25
int vsnprintf(char *str, size_t size, const char *format, va_list list)
Definition vsnprintf.c:163
char * strcpy(char *destination, const char *source)
Definition strcpy.c:25
typedef __attribute__