util.h - tscrape - twitter scraper (not working anymore)
 (HTM) git clone git://git.codemadness.org/tscrape
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       util.h (783B)
       ---
            1 #include <sys/types.h>
            2 
            3 #include <stdio.h>
            4 
            5 #ifdef __OpenBSD__
            6 #include <unistd.h>
            7 #else
            8 #define pledge(p1,p2) 0
            9 #endif
           10 
           11 #undef strlcat
           12 size_t strlcat(char *, const char *, size_t);
           13 #undef strlcpy
           14 size_t strlcpy(char *, const char *, size_t);
           15 
           16 /* feed info */
           17 struct feed {
           18         char *        name;     /* feed name */
           19         unsigned long totalnew; /* amount of new items per feed */
           20         unsigned long total;    /* total items */
           21 };
           22 
           23 enum {
           24         FieldUnixTimestamp = 0,
           25         FieldUsername, FieldFullname,
           26         FieldText, FieldItemid,
           27         FieldItemUsername, FieldItemFullname,
           28         FieldRetweetid, FieldIspinned,
           29         FieldLast
           30 };
           31 
           32 size_t  parseline(char *, char *[FieldLast]);
           33 void    printutf8pad(FILE *, const char *, size_t, int);
           34 int     strtotime(const char *, time_t *);
           35 void    xmlencode(const char *, FILE *);