2011-12-22 15:19:25 +00:00
|
|
|
/*
|
|
|
|
* \brief Mini C string functions
|
|
|
|
* \author Christian Helmuth
|
|
|
|
* \date 2008-07-24
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2017-02-20 12:23:52 +00:00
|
|
|
* Copyright (C) 2008-2017 Genode Labs GmbH
|
2011-12-22 15:19:25 +00:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
2017-02-20 12:23:52 +00:00
|
|
|
* under the terms of the GNU Affero General Public License version 3.
|
2011-12-22 15:19:25 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _INCLUDE__MINI_C__STRING_H_
|
|
|
|
#define _INCLUDE__MINI_C__STRING_H_
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
void *memcpy(void *dest, const void *src, size_t n);
|
|
|
|
void *memset(void *s, int c, size_t n);
|
|
|
|
int memcmp(const void *s1, const void *s2, size_t n);
|
|
|
|
|
|
|
|
size_t strlen(const char *s);
|
|
|
|
int strcmp(const char *s1, const char *s2);
|
|
|
|
char *strcpy(char *dest, const char *src);
|
|
|
|
char *strncpy(char *dest, const char *src, size_t n);
|
|
|
|
char *strcat(char *dest, const char *src);
|
|
|
|
|
|
|
|
char *strerror(int errnum);
|
|
|
|
|
|
|
|
#endif /* _INCLUDE__MINI_C__STRING_H_ */
|