home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / msdos / raytrace / pov / gen / bstone / borlandc / t_cio.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-12-10  |  1.5 KB  |  29 lines

  1. /************************************************************************/
  2. /**** My favourite IO routines                                       ****/
  3. /************************************************************************/
  4.  
  5.  
  6. /**** Standard-error subroutine                                      ****/
  7. /**** exits with errnum                                              ****/
  8. /**** premsg: msg to show first, errnum:                             ****/
  9. /* 0: regular abort                                                     */
  10. /* 1: memory allocation error                                           */
  11. /* 2: io error                                                          */
  12. /* 3: number out of range                                               */
  13. /* 4: buffer overflow                                                   */
  14. /* 5: syntax error                                                      */
  15. void t_error(char *premsg,int errnum);
  16.  
  17. /* get filename ************************************************/
  18. char *t_getfnam(void);
  19.  
  20. /**** opens file, if name==NULL -> asks for file name                 ****/
  21. /**** t_path must be set                                              ****/
  22. /**** if using UNIX etc, change backslashes in function body          ****/
  23. FILE *t_fopen(char *name, char *mode);
  24.  
  25. /**** Menus                                                       ****/
  26. /**** menu[]={"first item","second item","" }                     ****/
  27. /**** returns number of selected item                             ****/
  28. int ar_menu(char *menu[]);
  29.