home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / AP / TERMNET / NCFTP183 / MAIN.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-04-20  |  980 b   |  51 lines

  1. /* main.h */
  2.  
  3. #ifndef _main_h_
  4. #define _main_h_
  5.  
  6. /*  $RCSfile: main.h,v $
  7.  *  $Revision: 14020.12 $
  8.  *  $Date: 93/05/21 05:45:33 $
  9.  */
  10.  
  11. struct userinfo {
  12.     str32   username;
  13.     string  homedir;
  14.     string  shell;
  15.     string  hostname;
  16.     int        uid;
  17. };
  18.  
  19. void intr SIG_PARAMS;
  20. int getuserinfo(void);
  21. int init_arrays(void);
  22. void init_transfer_buffer(void);
  23. void init_prompt(void);
  24. void lostpeer SIG_PARAMS;
  25. void cmdscanner(int top);
  26. char *strprompt(void);
  27. void makeargv(void);
  28. char *slurpstring(void);
  29. int help(int argc, char **argv);
  30. void trim_log(void);
  31. int CheckNewMail(void);
  32.  
  33. #ifdef CURSES
  34.     void tcap_put(char *cap);
  35.     void termcap_init(void);
  36.     int termcap_get(char **dest, char *attr);
  37. #    ifndef TERMH /* <term.h> would take care of this. */
  38. #        ifdef NO_CONST
  39.             extern char *tgetstr(char *, char **);
  40. #        else
  41.             extern char *tgetstr(const char *, char **);
  42. #        endif
  43. #    endif    /* TERMH */
  44. #endif    /* CURSES */
  45.  
  46. /* Should be in a 'tips.h,' but... */
  47. void PrintTip(void);
  48.  
  49. #endif    /* _main_h_ */
  50.  
  51.