Loading [MathJax]/extensions/tex2jax.js
CS350 COS
COS
All Data Structures Files Functions Variables Typedefs Macros
string.h
Go to the documentation of this file.
1
2#ifndef __STRING_H__
3#define __STRING_H__
4
5#include <stdint.h>
6
7int memcmp(const void *b1, const void *b2, size_t len);
8void *memcpy(void *dst, const void *src, size_t len);
9void *memset(void *dst, int c, size_t len);
10
11char *strchr(const char *s, int c);
12int strcmp(const char *s1, const char *s2);
13char *strcpy(char *to, const char *from);
14size_t strlen(const char *str);
15int strncmp(const char *s1, const char *s2, size_t len);
16char *strncpy(char *to, const char *from, size_t len);
17
18char *strcat(char *s, const char *append);
19char *strncat(char *s, const char *append, size_t count);
20
21char *strtok(char *str, const char *delim);
22char *strtok_r(char *str, const char *delim, char **last);
23
24#endif /* __STRING_H__ */
25
uint64_t len
Definition: multiboot.h:2
size_t strlen(const char *str)
Definition: string.c:112
int strcmp(const char *s1, const char *s2)
Definition: string.c:81
char * strcpy(char *to, const char *from)
Definition: string.c:24
int memcmp(const void *b1, const void *b2, size_t len)
Definition: string.c:192
char * strtok(char *str, const char *delim)
Definition: string.c:156
char * strncpy(char *to, const char *from, size_t len)
Definition: string.c:34
char * strncat(char *s, const char *append, size_t count)
Definition: string.c:58
void * memset(void *dst, int c, size_t len)
Definition: string.c:164
char * strtok_r(char *str, const char *delim, char **last)
Definition: string.c:122
char * strchr(const char *s, int c)
Definition: string.c:11
void * memcpy(void *dst, const void *src, size_t len)
Definition: string.c:177
int strncmp(const char *s1, const char *s2, size_t len)
Definition: string.c:91
char * strcat(char *s, const char *append)
Definition: string.c:46