home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / cdtst105.zip / miscsam.h < prev    next >
Text File  |  1999-01-10  |  520b  |  21 lines

  1. #ifndef __cplusplus
  2.     #define inline _Inline    // that's for VAC++, use static at worst
  3. #endif
  4.  
  5. char *strip(char *something);
  6. char *uncomment(char *something);
  7. char *translateChar(char *string, char to[], char from[]);
  8. char *LFN2SFN(char *LFN, char *SFN);
  9.  
  10. typedef int bool;
  11. #define true 1
  12. #define false 0
  13.  
  14. inline char *makeValidLFN(char *LFN)
  15. {
  16.    translateChar(LFN, "________    __________________'--;()!-!",
  17.                       "\a\b\t\v\f\r\"*/:<>?\\|");
  18.    return LFN;
  19. }
  20.  
  21.