home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_144 / 2.ddi / TVINC.ZIP / UTIL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1.5 KB  |  56 lines

  1. /* ------------------------------------------------------------------------*/
  2. /*                                                                         */
  3. /*   UTIL.H                                                                */
  4. /*                                                                         */
  5. /*   Copyright (c) Borland International 1991                              */
  6. /*   All Rights Reserved.                                                  */
  7. /*                                                                         */
  8. /* ------------------------------------------------------------------------*/
  9.  
  10. #if !defined( __UTIL_H )
  11. #define __UTIL_H
  12.  
  13. inline int min( int a, int b )
  14. {
  15.     return (a>b) ? b : a;
  16. }
  17.  
  18. inline int max( int a, int b )
  19. {
  20.     return (a<b) ? b : a;
  21. }
  22.  
  23. void fexpand( char * );
  24.  
  25. char hotKey( const char *s );
  26. ushort ctrlToArrow( ushort );
  27. char getAltChar( ushort keyCode );
  28. ushort getAltCode( char ch );
  29.  
  30. ushort historyCount( uchar id );
  31. const char *historyStr( uchar id, int index );
  32. void historyAdd( uchar id, const char * );
  33.  
  34. int cstrlen( const char * );
  35.  
  36. class far TView;
  37. void *message( TView *receiver, ushort what, ushort command, void *infoPtr );
  38. Boolean lowMemory();
  39.  
  40. char *newStr( const char * );
  41.  
  42. Boolean driveValid( char drive );
  43.  
  44. Boolean isDir( const char *str );
  45.  
  46. Boolean pathValid( const char *path );
  47.  
  48. Boolean validFileName( const char *fileName );
  49.  
  50. void getCurDir( char *dir );
  51.  
  52. Boolean isWild( const char *f );
  53.  
  54.  
  55. #endif  // __UTIL_H
  56.