home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / cprog / ev_201.zip / STRFCTS.H < prev    next >
C/C++ Source or Header  |  1993-07-03  |  3KB  |  103 lines

  1. #if !defined (STRFCTS)            /* Prevents multiple declarations errors */
  2. #define STRFCTS
  3.  
  4.  
  5. /*
  6.    Module        : STRFCTS.H
  7.    Version       : 2.0
  8.    Revision date : July 3rd, 1993
  9.    Author(s)     : Rémy Gendron
  10.  
  11.    Description   : String related functions.
  12. */
  13.  
  14.  
  15. /* Headers --------------------------------------------------------------- */
  16.  
  17. #include <stdio.h>
  18.  
  19.  
  20. /* Macros ---------------------------------------------------------------- */
  21.  
  22. #include "stdmacro.h"
  23.  
  24.  
  25. /* Typedefs -------------------------------------------------------------- */
  26.  
  27. #include "stdtype.h"
  28.  
  29.  
  30. /* Prototypes ------------------------------------------------------------ */
  31.  
  32. #ifdef __cplusplus                     /* Enables linking with C++ modules */
  33. extern "C" {
  34. #endif
  35.  
  36. size_t far str_len                       /* Returns the length of a string */
  37. (
  38.    char huge *string                               /* Huge ptr to a string */
  39. ) ;
  40.  
  41. char huge * far str_cpy                  /* Copies one string into another */
  42. (
  43.    char huge *dest,                                   /* Destination array */
  44.    char huge *src                                         /* Source string */
  45. ) ;
  46.  
  47. int far str_cmp                          /* Compares one string to another */
  48. (
  49.    char huge *string1,                                     /* First string */
  50.    char huge *string2                                     /* Second string */
  51. ) ;
  52.  
  53. int far str_icmp        /* Case insensitive compares one string to another */
  54. (
  55.    char huge *string1,                                     /* First string */
  56.    char huge *string2                                     /* Second string */
  57. ) ;
  58.  
  59. void far str_toupper                 /* Sets chars in string to upper case */
  60. (
  61.    char huge *string                               /* Huge ptr to a string */
  62. ) ;
  63.  
  64. void far str_tolower                 /* Sets chars in string to lower case */
  65. (
  66.    char huge *string                               /* Huge ptr to a string */
  67. ) ;
  68.  
  69. void far str_pastoc                /* Converts a pascal string to c format */
  70. (
  71.    char huge *string                                      /* Ptr to string */
  72. ) ;
  73.  
  74. void far str_ctopas                /* Converts a c string to pascal format */
  75. (
  76.    char huge *string                                      /* Ptr to string */
  77. ) ;
  78.  
  79. void far str_trim                   /* Removes leading and trailing spaces */
  80. (
  81.    char huge *string                                      /* Ptr to string */
  82. ) ;
  83.  
  84. void far str_invnames                      /* Inverts first and last names */
  85. (
  86.    char huge *string                                      /* Ptr to string */
  87. ) ;
  88.  
  89. char huge * far str_center                             /* Centers a string */
  90. (
  91.    char huge *string,                                     /* Ptr to string */
  92.    int       area_length                                 /* Length of area */
  93. ) ;
  94.  
  95.  
  96. #ifdef __cplusplus
  97. }
  98. #endif
  99.  
  100.  
  101. /* End Source File ------------------------------------------------------- */
  102.  
  103. #endif