1989-05-16 13:13:53 +00:00
|
|
|
/*
|
|
|
|
* string.h - string handling
|
|
|
|
*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
1994-06-24 14:02:31 +00:00
|
|
|
/* $Id$ */
|
1989-05-16 13:13:53 +00:00
|
|
|
|
2007-04-24 19:42:24 +00:00
|
|
|
#ifndef _STRING_H
|
1989-12-18 14:00:32 +00:00
|
|
|
#define _STRING_H
|
1989-05-16 13:13:53 +00:00
|
|
|
|
2007-04-24 19:42:24 +00:00
|
|
|
#include <stddef.h>
|
1989-05-16 13:13:53 +00:00
|
|
|
|
2007-04-24 19:42:24 +00:00
|
|
|
extern void *memcpy(void *_s1, const void *_s2, size_t _n);
|
|
|
|
extern void *memmove(void *_s1, const void *_s2, size_t _n);
|
|
|
|
extern char *strcpy(char *_s1, const char *_s2);
|
|
|
|
extern char *strncpy(char *_s1, const char *_s2, size_t _n);
|
|
|
|
extern char *strcat(char *_s1, const char *_s2);
|
|
|
|
extern char *strncat(char *_s1, const char *_s2, size_t _n);
|
|
|
|
extern int memcmp(const void *_s1, const void *_s2, size_t _n);
|
|
|
|
extern int strcmp(const char *_s1, const char *_s2);
|
|
|
|
extern int strcoll(const char *_s1, const char *_s2);
|
|
|
|
extern int strncmp(const char *_s1, const char *_s2, size_t _n);
|
|
|
|
extern size_t strxfrm(char *_s1, const char *_s2, size_t _n);
|
|
|
|
extern void *memchr(const void *_s, int _c, size_t _n);
|
|
|
|
extern char *strchr(const char *_s, int _c);
|
|
|
|
extern size_t strcspn(const char *_s1, const char *_s2);
|
|
|
|
extern char *strpbrk(const char *_s1, const char *_s2);
|
|
|
|
extern char *strrchr(const char *_s, int _c);
|
|
|
|
extern size_t strspn(const char *_s1, const char *_s2);
|
|
|
|
extern char *strstr(const char *_s1, const char *_s2);
|
|
|
|
extern char *strtok(char *_s1, const char *_s2);
|
|
|
|
extern void *memset(void *_s, int _c, size_t _n);
|
|
|
|
extern char *strerror(int _errnum);
|
|
|
|
extern size_t strlen(const char *_s);
|
2013-05-29 20:41:58 +00:00
|
|
|
extern char *strdup(const char *_s);
|
|
|
|
|
|
|
|
#define bcopy(s, d, z) memmove(d, s, z)
|
1989-05-16 13:13:53 +00:00
|
|
|
|
2007-04-24 19:42:24 +00:00
|
|
|
#endif
|