home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / crt / src / plstring.h < prev    next >
C/C++ Source or Header  |  1998-06-17  |  4KB  |  75 lines

  1. /***
  2. *plstring.h - declarations for PASCAL string manipulation functions
  3. *
  4. *       Copyright (c) 1994-1997, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *       This file contains the function declarations for the PASCAL string
  8. *       manipulation functions.
  9. *
  10. *       [Public]
  11. *
  12. ****/
  13.  
  14. #if _MSC_VER > 1000
  15. #pragma once
  16. #endif  /* _MSC_VER > 1000 */
  17.  
  18. #ifdef _MAC
  19.  
  20. #ifdef _M_MPPC
  21. #define __pascal
  22. #endif  /* _M_MPPC */
  23.  
  24. #ifndef _INC_PLSTRING
  25. #define _INC_PLSTRING
  26.  
  27. #ifdef __cplusplus
  28. extern "C" {
  29. #endif  /* __cplusplus */
  30.  
  31. #ifndef _INTERNAL_IFSTRIP_
  32. #include <cruntime.h>
  33. #endif  /* _INTERNAL_IFSTRIP_ */
  34.  
  35. _CRTIMP short  __pascal PLstrcmp(const unsigned char * str1, const unsigned char * str2);
  36. _CRTIMP short  __pascal PLstrncmp(const unsigned char * str1, const unsigned char * str2, short num);
  37. _CRTIMP unsigned char * __pascal        PLstrcpy(unsigned char * str1, const unsigned char * str2);
  38. _CRTIMP unsigned char * __pascal        PLstrncpy(unsigned char * str1, const unsigned char * str2, short num);
  39. _CRTIMP unsigned char * __pascal        PLstrcat(unsigned char * str1, const unsigned char * str2);
  40. _CRTIMP unsigned char * __pascal        PLstrncat(unsigned char * str1, const unsigned char * str2, short num);
  41. _CRTIMP char *  __pascal        PLstrchr(const unsigned char * str1, short ch1);
  42. _CRTIMP char *  __pascal        PLstrrchr(const unsigned char * str1, short ch1);
  43. _CRTIMP char *  __pascal        PLstrpbrk(const unsigned char * str1, const unsigned char * str2);
  44. _CRTIMP short  __pascal PLstrspn(const unsigned char * str1, const unsigned char * str2);
  45. _CRTIMP char *  __pascal        PLstrstr(const unsigned char * str1, const unsigned char * str2);
  46. _CRTIMP short  __pascal PLstrlen(const unsigned char * str);
  47.  
  48. #ifndef __STDC__
  49. #define _PUC    unsigned char *
  50. #define _CPUC   const unsigned char *
  51. #define _PC     char *
  52. #define _SH     short
  53. __inline  _CRTIMP _SH  __pascal _PLstrcmp(_CPUC str1, _CPUC str2) { return ((_SH)PLstrcmp((_CPUC) str1, (_CPUC) str2));}
  54. __inline  _CRTIMP _SH  __pascal _PLstrncmp(_CPUC str1, _CPUC str2, _SH num) { return ((_SH)PLstrncmp((_CPUC) str1, (_CPUC) str2, (_SH) num));}
  55. __inline  _CRTIMP _PUC __pascal _PLstrcpy(_PUC str1, _CPUC str2) { return((_PUC)PLstrcpy((_PUC) str1, (_CPUC) str2));}
  56. __inline  _CRTIMP _PUC __pascal _PLstrncpy(_PUC str1, _CPUC str2, _SH num) { return((_PUC)PLstrncpy((_PUC) str1, (_CPUC) str2, (_SH) num));}
  57. __inline  _CRTIMP _PUC __pascal _PLstrcat(_PUC str1, _CPUC str2) { return((_PUC)PLstrcat((_PUC) str1, (_CPUC) str2));}
  58. __inline  _CRTIMP _PUC __pascal _PLstrncat(_PUC str1, _CPUC str2, _SH num) { return((_PUC)PLstrncat((_PUC) str1,(_CPUC) str2, (_SH) num));}
  59. __inline  _CRTIMP _PC  __pascal _PLstrchr(_CPUC str1, _SH ch1) { return ((_PC)PLstrchr((_CPUC) str1, (_SH) ch1));}
  60. __inline  _CRTIMP _PC  __pascal _PLstrrchr(_CPUC str1, _SH ch1) { return ((_PC)PLstrrchr((_CPUC) str1, (_SH) ch1));}
  61. __inline  _CRTIMP _PC  __pascal _PLstrpbrk(_CPUC str1, _CPUC str2) { return ((_PC)PLstrpbrk((_CPUC) str1, (_CPUC) str2));}
  62. __inline  _CRTIMP _SH  __pascal _PLstrspn(_CPUC str1, _CPUC str2) { return ((_SH)PLstrspn((_CPUC) str1, (_CPUC) str2));}
  63. __inline  _CRTIMP _PC  __pascal _PLstrstr(_CPUC str1, _CPUC str2) { return ((_PC)PLstrstr((_CPUC) str1, (_CPUC) str2));}
  64. __inline  _CRTIMP _SH  __pascal _PLstrlen(_CPUC str) { return ((_SH)PLstrlen((_CPUC) str));}
  65. #endif  /* __STDC__ */
  66.  
  67. #ifdef __cplusplus
  68. }
  69.  
  70. #endif  /* __cplusplus */
  71.  
  72. #endif  /* _INC_PLSTRING */
  73.  
  74. #endif  /* _MAC */
  75.