home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / getline.zip / getline.h < prev    next >
C/C++ Source or Header  |  1993-08-14  |  872b  |  36 lines

  1. #ifndef GETLINE_H
  2. #define GETLINE_H
  3.  
  4. /* unix systems can #define POSIX to use termios, otherwise 
  5.  * the bsd or sysv interface will be used 
  6.  */
  7.  
  8. #if __STDC__ > 0
  9. #include <stddef.h>
  10.  
  11. typedef size_t (*gl_strwidth_proc)(char *);
  12.  
  13. char           *getline(char *);        /* read a line of input */
  14. void            gl_setwidth(int);        /* specify width of screen */
  15. void            gl_histadd(char *);        /* adds entries to hist */
  16. void        gl_strwidth(gl_strwidth_proc);    /* to bind gl_strlen */
  17.  
  18. extern int     (*gl_in_hook)(char *);
  19. extern int     (*gl_out_hook)(char *);
  20. extern int    (*gl_tab_hook)(char *, int, int *);
  21.  
  22. #else    /* not __STDC__ */
  23.  
  24. char           *getline();    
  25. void            gl_setwidth();
  26. void            gl_histadd();
  27. void        gl_strwidth();
  28.  
  29. extern int     (*gl_in_hook)();
  30. extern int     (*gl_out_hook)();
  31. extern int    (*gl_tab_hook)();
  32.  
  33. #endif /* __STDC__ */
  34.  
  35. #endif /* GETLINE_H */
  36.