home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / trn_12.zip / src / util.h < prev    next >
C/C++ Source or Header  |  1992-10-04  |  2KB  |  66 lines

  1. /* $Id: util.h,v 4.4 1991/09/09 20:27:37 sob Exp sob $
  2.  *
  3.  * $Log: util.h,v $
  4.  * Revision 4.4  1991/09/09  20:27:37  sob
  5.  * release 4.4
  6.  *
  7.  *
  8.  * 
  9.  */
  10. /* This software is Copyright 1991 by Stan Barber. 
  11.  *
  12.  * Permission is hereby granted to copy, reproduce, redistribute or otherwise
  13.  * use this software as long as: there is no monetary profit gained
  14.  * specifically from the use or reproduction of this software, it is not
  15.  * sold, rented, traded or otherwise marketed, and this copyright notice is
  16.  * included prominently in any copy made. 
  17.  *
  18.  * The author make no claims as to the fitness or correctness of this software
  19.  * for any use whatsoever, and it is provided as is. Any use of this software
  20.  * is at the user's own risk. 
  21.  */
  22.  
  23.  
  24.  
  25. EXT bool waiting INIT(FALSE);    
  26.             /* are we waiting for subprocess (in doshell)? */
  27. EXT int len_last_line_got INIT(0);
  28.             /* strlen of some_buf after */
  29.             /*  some_buf = get_a_line(bufptr,buffersize,fp) */
  30.  
  31. /* is the string for makedir a directory name or a filename? */
  32.  
  33. #define MD_DIR     0
  34. #define MD_FILE 1
  35.  
  36. void    util_init ANSI((void));
  37. int    doshell ANSI((char *,char *));
  38. char    *safemalloc ANSI((MEM_SIZE));
  39. char    *saferealloc ANSI((char *,MEM_SIZE));
  40. char    *safecpy ANSI((char *,char *,int));
  41. char    *safecat ANSI((char *,char *,int));
  42. char    *cpytill ANSI((char *,char *,int));
  43. char    *instr ANSI((char *,char *, int));
  44. #ifdef SETUIDGID
  45.     int        eaccess ANSI((char *,int));
  46. #endif
  47. char    *getwd ANSI((char *));
  48. char    *get_a_line ANSI((char *,int,FILE *));
  49. char    *savestr ANSI((char *));
  50. int    makedir ANSI((char *,int));
  51. void    setenv ANSI((char *,char *));
  52. int    envix ANSI((char *));
  53. void    notincl ANSI((char *));
  54. char    *getval ANSI((char *,char *));
  55. void    growstr ANSI((char **,int *,int));
  56. void    setdef ANSI((char *,char *));
  57. #ifdef SERVER
  58. int    nntp_get ANSI((char *, int));
  59. #endif
  60. #ifndef FOUNDSIZET
  61. #define size_t int
  62. #endif
  63. #ifndef STRFTIME
  64. size_t    strftime ANSI((char *, size_t, char *, struct tm *));
  65. #endif
  66.