miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Toggle main menu visibility
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
29
void
*
memset
(
void
*s,
int
c,
size_t
size
);
30
void
*
memcpy
(
void
*dest,
const
void
*src,
size_t
n);
31
void
*
memmove
(
void
*dest,
const
void
*src,
size_t
n);
32
int
memcmp
(
const
void
*s1,
const
void
*s2,
size_t
n);
33
char
*
strcpy
(
char
*destination,
const
char
*source);
34
char
*
strncpy
(
char
*dest,
const
char
*src,
size_t
n);
35
size_t
strlen
(
const
char
*str);
36
int
strncmp
(
const
char
*s1,
const
char
*s2,
size_t
n);
37
char
*
strcat
(
char
* destination,
const
char
* source);
38
int
isdigit
(
int
c);
39
40
int
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
size
uint16_t size
Definition
irq.h:0
stdarg.h
va_list
__builtin_va_list va_list
Definition
stdarg.h:35
strlen
size_t strlen(const char *str)
Definition
strlen.c:25
strncmp
int strncmp(const char *s1, const char *s2, size_t n)
Definition
strncmp.c:25
memmove
void * memmove(void *dest, const void *src, size_t n)
Definition
memmove.c:25
isdigit
int isdigit(int c)
Definition
isdigit.c:25
strcat
char * strcat(char *destination, const char *source)
Definition
strcat.c:25
strncpy
char * strncpy(char *dest, const char *src, size_t n)
Definition
strncpy.c:25
format
size_t const char * format
Definition
string.h:41
memcmp
int memcmp(const void *s1, const void *s2, size_t n)
Definition
memcmp.c:25
memcpy
void * memcpy(void *dest, const void *src, size_t n)
Definition
memcpy.c:25
memset
void * memset(void *s, int c, size_t size)
Definition
memset.c:25
vsnprintf
int vsnprintf(char *str, size_t size, const char *format, va_list list)
Definition
vsnprintf.c:163
strcpy
char * strcpy(char *destination, const char *source)
Definition
strcpy.c:25
__attribute__
Definition
dirent.h:6
types.h
include
string.h
Generated by
1.18.0