MicrOS
string.h
Go to the documentation of this file.
1 #ifndef STRING_H
2 #define STRING_H
3 
4 #include "stdint.h"
5 #include "stddef.h"
6 
8 typedef size_t uint32_t;
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
15 
22 void *memcpy(void *destination, const void *source, size_t size);
23 
25 
32 void *memmove(void *destination, const void *source, size_t size);
33 
35 
41 char *strcpy(char *destination, const char *source);
42 
44 
51 char *strncpy(char *destination, const char *source, size_t num);
52 
54 
60 char *strcat(char *destination, const char *source);
61 
63 
70 char *strncat(char *destination, const char *source, size_t num);
71 
73 
80 int memcmp(const void *buffer1, const void *buffer2, size_t size);
81 
83 
89 int strcmp(const char *str1, const char *str2);
90 
92 
99 int strcoll(const char *str1, const char *str2);
100 
102 
108 int strncmp(const char *str1, const char *str2, size_t num);
109 
111 
118 size_t strxfrm(char *destination, const char *source, size_t num);
119 
121 
128 void *memchr(void *ptr, int value, size_t num);
129 
131 
137 char *strchr(const char *str, int character);
138 
140 
146 size_t strcspn(const char *str1, const char *str2);
147 
149 
155 char *strpbrk(char *str1, const char *str2);
156 
158 
164 char *strrchr(char *str, int character);
165 
167 
173 size_t strspn(const char *str1, const char *str2);
174 
176 
182 char *strstr(const char *str1, const char *str2);
183 
185 
191 char *strtok(char *str, const char *delimiters);
192 
194 
201 void *memset(void *buffer, int value, size_t size);
202 
204 
209 char *strerror(int errnum);
210 
212 
217 size_t strlen(const char *str);
218 
219 #ifdef __cplusplus
220 }
221 #endif
222 
223 #endif
char * strcpy(char *destination, const char *source)
Copy string.
Definition: strcpy.c:3
int strcmp(const char *str1, const char *str2)
Compare two strings.
Definition: strcmp.c:3
char * strcat(char *destination, const char *source)
Concatenate strings.
Definition: strcat.c:3
size_t strcspn(const char *str1, const char *str2)
Get span until character in string.
Definition: strcspn.c:3
char * strchr(const char *str, int character)
Locate first occurrence of character in string.
Definition: strchr.c:3
void * memchr(void *ptr, int value, size_t num)
Locate character in block of memory.
Definition: memchr.c:3
char * strstr(const char *str1, const char *str2)
Locate substring.
Definition: strstr.c:36
int strncmp(const char *str1, const char *str2, size_t num)
Compare two strings using locale.
Definition: strncmp.c:3
void * memset(void *buffer, int value, size_t size)
Fill block of memory.
Definition: memset.c:3
char * strncat(char *destination, const char *source, size_t num)
Append characters from string.
Definition: strncat.c:3
int strcoll(const char *str1, const char *str2)
Compare two strings using locale.
Definition: strcoll.c:3
size_t strlen(const char *str)
Get string length.
Definition: strlen.c:3
void * memmove(void *destination, const void *source, size_t size)
Move block of memory.
Definition: memmove.c:3
char * strtok(char *str, const char *delimiters)
Split string into tokens.
Definition: strtok.c:3
size_t strxfrm(char *destination, const char *source, size_t num)
Transform string using locale.
Definition: strxfrm.c:3
char * strerror(int errnum)
Get pointer to error message string.
Definition: strerror.c:9
char * strrchr(char *str, int character)
Locate last occurrence of character in string.
Definition: strrchr.c:3
char buffer[500]
Definition: physical_memory_manager.c:5
char * strncpy(char *destination, const char *source, size_t num)
Copy characters from string.
Definition: strncpy.c:3
char * strpbrk(char *str1, const char *str2)
Locate characters in string.
Definition: strpbrk.c:3
size_t uint32_t
Unsigned integral type.
Definition: string.h:8
void * memcpy(void *destination, const void *source, size_t size)
Copy block of memory.
Definition: memcpy.c:3
int memcmp(const void *buffer1, const void *buffer2, size_t size)
Compare two blocks of memory.
Definition: memcmp.c:3
size_t strspn(const char *str1, const char *str2)
Get span of character set in string.
Definition: strspn.c:3