gawk

Sed-like interface to the Gopher protocol
git clone git://jacobedwards.org/gawk
Log | Files | Refs | LICENSE

util.h (559B)


      1 #ifndef _util_h
      2 #define _util_h
      3 
      4 #include <stdarg.h>
      5 #include <stdio.h>
      6 
      7 #define die(E, ...) { warn(E, __VA_ARGS__); exit(EXIT_FAILURE); }
      8 
      9 FILE 	*wfopen(char const *, char const *);
     10 int	 argsplit(char **, int, char *, char const *, int);
     11 int	 exists(char const *);
     12 int	 wfclose(FILE *);
     13 int	 wremove(char const *);
     14 long long	strtonum(const char *, long long, long long, const char **);
     15 long long	wstrtonum(const char *, long long, long long, const char **);
     16 void	 tr(char *, char const *, int, int);
     17 void	 warn(int, char const *, ...);
     18 
     19 #endif /* _util_h */