tutil.h - vote - simple cgi voting system for web and gopher
 (HTM) git clone git://src.adamsgaard.dk/vote
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       tutil.h (611B)
       ---
            1 #ifndef __OpenBSD__
            2 #define pledge(p1,p2) 0
            3 #define unveil(p1,p2) 0
            4 #endif
            5 
            6 #undef strlcat
            7 size_t strlcat(char *, const char *, size_t);
            8 #undef strlcpy
            9 size_t strlcpy(char *, const char *, size_t);
           10 
           11 int decodeparam(char *buf, size_t bufsiz, const char *s);
           12 int friendlytime(time_t now, time_t t);
           13 char *getparam(const char *query, const char *s);
           14 void gophertext(FILE *fp, const char *s, size_t len);
           15 int hexdigit(int c);
           16 int uriencode(const char *s, char *buf, size_t bufsiz);
           17 int utf8pad(char *buf, size_t bufsiz, const char *s, size_t len, int pad);
           18 void xmlencode(const char *s);
           19 void escapechars(char *s);