/* @(#)Copyright (c), 1987, 1993 StatSci, Inc.  All rights reserved. */
/* @(#)strings.h version 3.1 created 5/30/93 */
#if defined(APOLLO) /*(*/
/* Splus options and C compiler version changes required slight changes in
 * this APOLLO header file to get compilations/executions to work.  DLR.
 */
/*
 * Copyright (c) 1980 Regents of the University of California.
 * All rights reserved.  The Berkeley software License Agreement
 * specifies the terms and conditions for redistribution.
 *
 *    strings.h    5.1 (Berkeley) 5/30/85
 *
 *    Apollo Modifications:
 *  06/29/89    garyf   long -> int
 *  02/11/88    garyf   quiet compiler warnings
 *  09/04/87    mccue   Corrected prototypes for index, rindex
 *    07/22/87    brian    Added function prototypes
 */

/*
 * External function definitions
 * for routines described in string(3).
 */

/*  Enable function prototypes for ANSI C and C++  */
#ifndef strlen
#if defined(__STDC__) || defined(c_plusplus) || defined(__cplusplus)
#    define _PROTOTYPES
#endif

/*  Required for C++ V2.0  */
#ifdef  __cplusplus
    extern "C" {
#endif

char    *strcat(
#ifdef _PROTOTYPES
    char  *s1,
    char  *s2
#endif /* _PROTOTYPES */
);              

char    *strncat(
#ifdef _PROTOTYPES
    char  *s1,
    char  *s2,
    long  n
#endif /* _PROTOTYPES */
);

int    strcmp(
#ifdef _PROTOTYPES
    char  *s1,
    char  *s2
#endif /*  _PROTOTYPES */
);

int    strncmp(
#ifdef _PROTOTYPES
    char  *s1,
    char  *s2,
    long  n
#endif /* _PROTOTYPES */
);

char    *strcpy(
#ifdef _PROTOTYPES
    char  *s1,
    char  *s2
#endif /* _PROTOTYPES */
);

char    *strncpy(
#ifdef _PROTOTYPES
    char  *s1,
    char  *s2,
    long  n
#endif /* _PROTOTYPES */
);

/* Get size_t if we don't have it already. */
#ifndef _SIZE_T
#	define _NEED_SIZE_T
#	include <sys/stdtypes.h>
#endif
size_t     strlen(
#ifdef _PROTOTYPES
    char  *s
#endif /* _PROTOTYPES */
);

char    *index(
#ifdef _PROTOTYPES
    char  *s,
    long  c     /* Actual type is char, but widening rules require a declaration of long */
#endif /* _PROTOTYPES */
);

char    *rindex(
#ifdef _PROTOTYPES
    char  *s,
    long  c     /* Actual type is char, but widening rules require a declaration of long */
#endif /* _PROTOTYPES */
);

#undef _PROTOTYPES

#ifdef  __cplusplus
    }
#endif
#endif
#endif /*) APOLLO */
