home *** CD-ROM | disk | FTP | other *** search
- #ifndef _USEFUL_H
- #define _USEFUL_H
-
- // A bunch of useful C++ Functions
-
- // Character string oriented functions
- void rtrim(char *); // Right Trim -- Removes rightmost spaces
- void ltrim(char *); // Left trim -- removes leftmost spaces
- void alltrim(char *); // Right Trim + Left Trim
-
- // There are 2 center functions, one defaults to 80 columns, the other
- // takes a number that the user enters. Both return a character string
- // which prints out as a centered string.
- char *center(char *string);
- char *center(char *string, int width);
-
- void pause(); // Pauses until a key is hit.
-
- int verify(char *, // Chars to return 1 with
- char *); // Chars to return 0 with
-
- int is_in(char, // Returns 1 if char is in the
- char *); // String.
- #endif
-