4.3BSD-Reno/include/string.h

Compare this file to the similar file:
Show the results in this format:

/*-
 * Copyright (c) 1990 The Regents of the University of California.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms are permitted provided
 * that: (1) source distributions retain this entire copyright notice and
 * comment, and (2) distributions including binaries display the following
 * acknowledgement:  ``This product includes software developed by the
 * University of California, Berkeley and its contributors'' in the
 * documentation or other materials provided with the distribution and in
 * all advertising materials mentioning features or use of this software.
 * Neither the name of the University nor the names of its contributors may
 * be used to endorse or promote products derived from this software without
 * specific prior written permission.
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 *
 *	@(#)string.h	5.4 (Berkeley) 5/29/90
 */

#ifndef _STRING_H_
#define	_STRING_H_
#include <machine/machtypes.h>

#ifdef	_SIZE_T_
typedef	_SIZE_T_	size_t;
#undef	_SIZE_T_
#endif

#ifndef	NULL
#define	NULL	0
#endif

#if __STDC__ || c_plusplus

void	*memchr(const void *, int, size_t);
int	 memcmp(const void *, const void *, size_t);
void	*memcpy(void *, const void *, size_t);
void	*memmove(void *, const void *, size_t);
void	*memset(void *, int, size_t);
char	*strcat(char *, const char *);
char	*strchr(const char *, int);
int	 strcmp(const char *, const char *);
int	 strcoll(const char *, const char *);
char	*strcpy(char *, const char *);
size_t	 strcspn(const char *, const char *);
char	*strerror(int);
size_t	 strlen(const char *);
char	*strncat(char *, const char *, size_t);
int	 strncmp(const char *, const char *, size_t);
char	*strncpy(char *, const char *, size_t);
char	*strpbrk(const char *, const char *);
char	*strrchr(const char *, int);
size_t	 strspn(const char *, const char *);
char	*strstr(const char *, const char *);
char	*strtok(char *, const char *);
size_t	 strxfrm(char *, const char *, size_t);

#else

void	*memchr();
int	 memcmp();
void	*memcpy();
void	*memmove();
void	*memset();
char	*strcat();
char	*strchr();
int	 strcmp();
int	 strcoll();
char	*strcpy();
size_t	 strcspn();
char	*strerror();
size_t	 strlen();
char	*strncat();
int	 strncmp();
char	*strncpy();
char	*strpbrk();
char	*strrchr();
size_t	 strspn();
char	*strstr();
char	*strtok();
size_t	 strxfrm();

#endif

/* Nonstandard routines */
#ifndef _ANSI_SOURCE
#if __STDC__ || c_plusplus

int	 bcmp(const char *, const char *, size_t);
void	 bcopy(const char *, char *, size_t);
void	 bzero(char *, size_t);
int	 ffs(int);
char	*index(const char *, int);
void	*memccpy(void *, const void *, int, size_t);
char	*rindex(const char *, int);
int	 strcasecmp(const char *, const char *);
char	*strdup(const char *);
void	 strmode(mode_t, char *);
int	 strncasecmp(const char *, const char *, size_t);
char	*strsep(char *, const char *);
void	 swab(const char *, char *, size_t);

#else

int	 bcmp();
void	 bcopy();
void	 bzero();
int	 ffs();
char	*index();
void	*memccpy();
char	*rindex();
int	 strcasecmp();
char	*strdup();
void	strmode();
int	 strncasecmp();
char	*strsep();
void	 swab();

#endif
#endif 
#endif /* _STRING_H_ */