forked from lewurm/mini
- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstring.h
More file actions
Latest commit
29 lines (22 loc) · 899 Bytes
/
Copy pathstring.h
File metadata and controls
29 lines (22 loc) · 899 Bytes
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
/* string.c -- standard C string-manipulation functions.
Copyright (C) 2008 Segher Boessenkool <segher@kernel.crashing.org>
Copyright (C) 2009 Haxx Enterprises <bushing@gmail.com>
# 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_tstrlen(constchar*);
size_tstrnlen(constchar*, size_t);
void*memset(void*, int, size_t);
void*memcpy(void*, constvoid*, size_t);
intmemcmp(constvoid*, constvoid*, size_t);
intstrcmp(constchar*, constchar*);
intstrncmp(constchar*, constchar*, size_t);
size_tstrlcpy(char*, constchar*, size_t);
size_tstrlcat(char*, constchar*, size_t);
char*strchr(constchar*, int);
size_tstrspn(constchar*, constchar*);
size_tstrcspn(constchar*, constchar*);
#endif