forked from comex/formatter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
string.h
31 lines (24 loc) · 966 Bytes
/
string.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* string.c -- standard C string-manipulation functions.
Copyright (C) 2008 Segher Boessenkool <[email protected]>
Copyright (C) 2009 Haxx Enterprises <[email protected]>
# This code is licensed to you under the terms of the GNU GPL, version 2;
# see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
*/
#ifndef _STRING_H
#define _STRING_H
#include "types.h"
size_t strlen(const char *);
size_t strnlen(const char *, size_t);
void *memset(void *, int, size_t);
void *memcpy(void *, const void *, size_t);
int memcmp(const void *, const void *, size_t);
int strcmp(const char *, const char *);
int strncmp(const char *, const char *, size_t);
size_t strlcpy(char *, const char *, size_t);
size_t strlcat(char *, const char *, size_t);
char *strchr(const char *, int);
size_t strspn(const char *, const char *);
size_t strcspn(const char *, const char *);
int my_atoi(const char *s);
int my_atoi_hex(const char *s, int n);
#endif