home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / BACSTD.H < prev    next >
C/C++ Source or Header  |  1997-07-05  |  3KB  |  101 lines

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /*****************************************************************************
  4. * @(#)BACSTD.h
  5. *
  6. * @(#)Headerfile for the BACSTD library.
  7. *
  8. * This library is avalable for the following memorymodels:
  9. * Small (bacstd_S.lib), Medium (bacstd_M.lib), Compact (bacstd_C.lib), 
  10. * Large (bacstd_L.lib) and Huge (bacstd_H.lib)
  11. *
  12. * BACSTD.lib contains several basic routines for BORLAND C and TURBO C
  13. *
  14. * For further details see the textfile: BACSTD.TXT
  15. *
  16. *-----------------------------------------------------------------------------
  17. *
  18. ******************************************************************************
  19. *@(#)1991-1995 Erik Bachmann (E-mail: ebp@dde.dk)
  20. *
  21. * Released to public domain 27-Oct-95
  22. ******************************************************************************/
  23.  
  24. #include <stdio.h>                     /* FILE */
  25. #include <stdarg.h>                    /* va_list */
  26. #include "modulinf.h"
  27.  
  28. /*** DEFINITIONS *****************************************/
  29. #define _cdecl cdecl
  30.                                        /* Library => EXTERN */
  31. #if !defined(BACSTD_LIB_H)
  32. #  define   BACSTD_LIB_H
  33.  
  34.  
  35. #  if defined(__TINY__) || defined(__SMALL__)
  36. #     define _CfnTYPE near             /* neardef for functions */
  37. #     define _CdtTYPE near             /* neardef for data */
  38. #  else
  39. #     define _CfnTYPE far              /* fardef for functions */
  40. #     define _CdtTYPE far              /* fardef for data */
  41. #  endif
  42.  
  43.  
  44. /*** GLOBAL DATA *****************************************/
  45.    enum BOOLEAN   { FALSE, TRUE };
  46.  
  47.    #define  complement(base)  ~base + 1
  48.    
  49. #endif
  50.  
  51.  
  52. /*** PROTOTYPES *******************************************/
  53.  
  54. /* E_HANDL.C */
  55. int handler ( int errval , int ax , int bp , int si );
  56.  
  57. /* STRCASE.C */
  58. unsigned char _CfnTYPE *strcase ( unsigned char *pszStr , 
  59.          unsigned char *pszOrder );
  60.  
  61. /* STRREPC.C */
  62. int _CfnTYPE strrepc ( char *pszStr , char cFrom , char cTo );
  63.  
  64. /* MODULUS.C */
  65. int _CfnTYPE modulus10 ( char *pszBase );
  66. int _CfnTYPE modulus11 ( char *pszBase );
  67. int _CfnTYPE check_modulus10 ( char *pszBase );
  68. int _CfnTYPE check_modulus11 ( char *pszBase );
  69.  
  70. /* REPSTR.C */
  71. int _CfnTYPE repstr ( FILE *fpIn , FILE *fpOut , char *PatternTable [][2 ]);
  72.  
  73. /* CMPSTR.C */
  74. int far cmpstr ( unsigned char *pszStr1 , unsigned char *pszStr2 , 
  75.          unsigned char *pszOrder );
  76. int far tcmpstr ( unsigned char *pszStr1 , unsigned char *pszStr2 , 
  77.          unsigned char *pszOrder , unsigned char *pszMask , 
  78.          unsigned char *pszTrunc );
  79. void state ( int iOrder );
  80.  
  81. /* STRNSUB.C */
  82. char _CfnTYPE *strnsub ( char *pszString , char *pszPattern , 
  83.          char *pszReplacement , int iMaxLength );
  84.  
  85. /* TIME__.C */
  86. char _CfnTYPE *time_mac_conv ( char *pszTime );
  87.  
  88. /* DATE__.C */
  89. char far *date_mac_conv ( char *pszDate );
  90.  
  91. /* STRTRIM.C */
  92. int _CfnTYPE strtrimr ( char *pszStr );
  93. int _CfnTYPE strtriml ( char *pszStr );
  94. int _CfnTYPE strtrim ( char *pszStr );
  95.  
  96. /* STRTRIMC.C */
  97. int _CfnTYPE strtrimcr ( char *szStr , char *szSet );
  98. int _CfnTYPE strtrimcl ( char *szStr , char *szSet );
  99. int _CfnTYPE strtrimc ( char *szStr , char *szSet );
  100. int _CfnTYPE rep_last_char ( char *pszStr , char cChar1 , char cChar2 );
  101.