d273497077
--HG-- rename : lang/cem/libcc.ansi/stdlib/getenv.c => lang/cem/libcc.ansi/stdlib/setenv.c rename : lang/cem/libcc.ansi/string/strlen.c => lang/cem/libcc.ansi/string/strdup.c extra : source : 64d6e6eec18d76bf8f3947ec5d171db94acdb282
41 lines
1.5 KiB
C
41 lines
1.5 KiB
C
/*
|
|
* 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".
|
|
*/
|
|
/* $Id$ */
|
|
|
|
#ifndef _STRING_H
|
|
#define _STRING_H
|
|
|
|
#include <stddef.h>
|
|
|
|
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);
|
|
extern char *strdup(const char *_s);
|
|
|
|
#define bcopy(s, d, z) memmove(d, s, z)
|
|
|
|
#endif
|