home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / database / ooed / useful.hpp < prev   
Encoding:
C/C++ Source or Header  |  1991-03-24  |  794 b   |  25 lines

  1. #ifndef _USEFUL_H
  2. #define _USEFUL_H
  3.  
  4. // A bunch of useful C++ Functions
  5.  
  6. // Character string oriented functions
  7. void rtrim(char *); // Right Trim -- Removes rightmost spaces
  8. void ltrim(char *); // Left trim -- removes leftmost spaces
  9. void alltrim(char *); // Right Trim + Left Trim
  10.  
  11. // There are 2 center functions, one defaults to 80 columns, the other
  12. // takes a number that the user enters. Both return a character string
  13. // which prints out as a centered string.
  14. char *center(char *string);
  15. char *center(char *string, int width);
  16.  
  17. void pause(); // Pauses until a key is hit.
  18.  
  19. int  verify(char *,   // Chars to return 1 with
  20.             char *);  // Chars to return 0 with
  21.  
  22. int is_in(char,       // Returns 1 if char is in the
  23.           char *);    // String.
  24. #endif
  25.