mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-28 06:04:19 +01:00
30 lines
899 B
C
30 lines
899 B
C
/* 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_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 *);
|
|
|
|
#endif
|
|
|