home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
borhead.zip
/
STRING.H
< prev
next >
Wrap
C/C++ Source or Header
|
1994-11-09
|
7KB
|
191 lines
/* string.h
Definitions for memory and string functions.
*/
/*
* C/C++ Run Time Library - Version 1.5
*
* Copyright (c) 1987, 1994 by Borland International
* All Rights Reserved.
*
*/
#ifndef __STRING_H
#define __STRING_H
#if !defined(___DEFS_H)
#include <_defs.h>
#endif
#ifndef NULL
#include <_null.h>
#endif
#if !defined(__STDC__) && defined(__USELOCALES__)
#if !defined(__LOCALE_H)
#include <locale.h>
#endif
#endif /* !__STDC__ && __USELOCALES__ */
#if !defined(RC_INVOKED)
#if defined(__STDC__)
#pragma warn -nak
#endif
#endif /* !RC_INVOKED */
#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned size_t;
#endif
#ifdef __cplusplus
extern "C" {
#endif
int _RTLENTRY _EXPFUNC memcmp(const void * __s1,
const void * __s2, size_t __n);
void * _RTLENTRY _EXPFUNC memcpy(void * __dest, const void * __src,
size_t __n);
void * _RTLENTRYF _EXPFUNC memmove(void * __dest, const void * __src,
size_t __n);
void * _RTLENTRYF _EXPFUNC memset(void * __s, int __c, size_t __n);
char * _RTLENTRYF _EXPFUNC strcat(char * __dest, const char * __src);
int _RTLENTRYF _EXPFUNC strcmp(const char * __s1, const char * __s2);
int _RTLENTRY _EXPFUNC strcoll(const char * __s1, const char * __s2);
int _RTLENTRY _EXPFUNC _lstrcoll(const char * __s1, const char * __s2);
char * _RTLENTRYF _EXPFUNC strcpy(char * __dest, const char * __src);
size_t _RTLENTRY _EXPFUNC strcspn(const char * __s1, const char * __s2);
char * _RTLENTRY _EXPFUNC strerror(int __errnum);
size_t _RTLENTRYF _EXPFUNC strlen(const char * __s);
char * _RTLENTRYF _EXPFUNC strncat(char * __dest, const char * __src,
size_t __maxlen);
int _RTLENTRYF _EXPFUNC strncmp(const char * __s1, const char * __s2,
size_t __maxlen);
char * _RTLENTRYF _EXPFUNC strncpy(char * __dest, const char * __src,
size_t __maxlen);
size_t _RTLENTRY _EXPFUNC strspn(const char * __s1, const char * __s2);
char * _RTLENTRYF _EXPFUNC strtok(char * __s1, const char * __s2);
size_t _RTLENTRY _EXPFUNC strxfrm(char * __s1, const char * __s2,
size_t __n );
size_t _RTLENTRY _EXPFUNC _lstrxfrm(char * __s1, const char * __s2,
size_t __n );
char * _RTLENTRY _EXPFUNC _strerror(const char * __s);
#if !__STDC__
/* compatibility with other compilers */
#define strcmpi(s1,s2) stricmp(s1,s2)
#define strncmpi(s1,s2,n) strnicmp(s1,s2,n)
void * _RTLENTRY _EXPFUNC memccpy(void * __dest, const void * __src,
int __c, size_t __n);
int _RTLENTRY _EXPFUNC memicmp(const void * __s1, const void * __s2,
size_t __n);
char * _RTLENTRYF _EXPFUNC stpcpy(char * __dest, const char * __src);
char * _RTLENTRY _EXPFUNC _stpcpy(char * __dest, const char * __src);
char * _RTLENTRY _EXPFUNC strdup(const char * __s);
int _RTLENTRYF _EXPFUNC stricmp(const char * __s1, const char * __s2);
char * _RTLENTRYF _EXPFUNC strlwr(char * __s);
char * _RTLENTRYF _EXPFUNC _lstrlwr(char * __s);
int _RTLENTRYF _EXPFUNC strnicmp(const char * __s1, const char * __s2,
size_t __maxlen);
char * _RTLENTRY _EXPFUNC strnset(char * __s, int __ch, size_t __n);
char * _RTLENTRY _EXPFUNC strrev(char * __s);
char * _RTLENTRY _EXPFUNC strset(char * __s, int __ch);
char * _RTLENTRYF _EXPFUNC strupr(char * __s);
char * _RTLENTRYF _EXPFUNC _lstrupr(char * __s);
#endif /* ! __STDC__ */
#ifdef __cplusplus
}
#endif
#if defined( __USELOCALES__ )
#define strupr _lstrupr
#define strlwr _lstrlwr
#define _fstrupr _lstrupr
#define _fstrlwr _lstrlwr
#define strcoll _lstrcoll
#define strxfrm _lstrxfrm
#endif
#if defined(__cplusplus)
extern "C++" {
void _FAR * _RTLENTRY _EXPFUNC32 memchr(void _FAR *__s, int __c, size_t __n);
const void _FAR * _RTLENTRY _EXPFUNC32 memchr(const void _FAR *__s, int __c, size_t __n);
char _FAR * _RTLENTRYF _EXPFUNC strchr(char _FAR * __s, int __c);
const char _FAR * _RTLENTRYF _EXPFUNC strchr(const char _FAR * __s, int __c);
char _FAR * _RTLENTRYF _EXPFUNC strrchr(char _FAR *__s, int __c);
const char _FAR * _RTLENTRYF _EXPFUNC strrchr(const char _FAR *__s, int __c);
char _FAR * _RTLENTRYF _EXPFUNC strpbrk(char _FAR *__s1, const char _FAR *__s2);
const char _FAR * _RTLENTRYF _EXPFUNC strpbrk(const char _FAR *__s1, const char _FAR *__s2);
char _FAR * _RTLENTRY _EXPFUNC strstr(char _FAR *__s1, const char _FAR *__s2);
const char _FAR * _RTLENTRY _EXPFUNC strstr(const char _FAR *__s1, const char _FAR *__s2);
}
#else
void _FAR * _RTLENTRY _EXPFUNC32 memchr(const void _FAR *__s, int __c, size_t __n);
char _FAR * _RTLENTRYF _EXPFUNC strchr(const char _FAR * __s, int __c);
char _FAR * _RTLENTRYF _EXPFUNC strrchr(const char _FAR *__s, int __c);
char _FAR * _RTLENTRYF _EXPFUNC strpbrk(const char _FAR *__s1, const char _FAR *__s2);
char _FAR * _RTLENTRY _EXPFUNC strstr(const char _FAR *__s1, const char _FAR *__s2);
#endif
#ifdef __cplusplus
extern "C" {
#endif
/* Intrinsic functions */
#if !defined(__MEM_H)
void _FAR * _RTLENTRY _EXPFUNC16 __memchr__ (const void _FAR *__s, int __c, size_t __n);
int _RTLENTRY _EXPFUNC16 __memcmp__(const void _FAR *__s1,
const void _FAR *__s2, size_t __n);
void _FAR * _RTLENTRY _EXPFUNC16 __memcpy__(void _FAR *__dest, const void _FAR *__src,
size_t __n);
void _FAR * _RTLENTRYF _EXPFUNC16 __memset__(void _FAR *__s, int __c, size_t __n);
#endif
char _FAR * _RTLENTRY __stpcpy__(char _FAR *__dest, const char _FAR *__src);
char _FAR * _RTLENTRYF _EXPFUNC16 __strcat__(char _FAR *__dest, const char _FAR *__src);
char _FAR * _RTLENTRY _EXPFUNC16 __strchr__(const char _FAR *__s, int __c);
int _RTLENTRYF _EXPFUNC16 __strcmp__(const char _FAR *__s1, const char _FAR *__s2);
char _FAR * _RTLENTRYF _EXPFUNC16 __strcpy__(char _FAR *__dest, const char _FAR *__src);
size_t _RTLENTRYF _EXPFUNC16 __strlen__(const char _FAR *__s);
char _FAR * _RTLENTRY _EXPFUNC16 __strncat__(char _FAR *__dest, const char _FAR *__src,
size_t __maxlen);
int _RTLENTRY _EXPFUNC16 __strncmp__(const char _FAR *__s1, const char _FAR *__s2,
size_t __maxlen);
char _FAR * _RTLENTRYF _EXPFUNC16 __strncpy__(char _FAR *__dest, const char _FAR *__src,
size_t __maxlen);
char _FAR * _RTLENTRY _EXPFUNC16 __strnset__(char _FAR *__s, int __ch, size_t __n);
char _FAR * _RTLENTRYF _EXPFUNC16 __strrchr__(const char _FAR *__s, int __c);
char _FAR * _RTLENTRY _EXPFUNC16 __strset__(char _FAR *__s, int __ch);
#ifdef __cplusplus
}
#endif
#if !defined(RC_INVOKED)
#if defined(__STDC__)
#pragma warn .nak
#endif
#endif /* !RC_INVOKED */
#endif /* __STRING_H */