util.h - smdev - suckless mdev
 (HTM) git clone git://git.suckless.org/smdev
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       util.h (502B)
       ---
            1 /* See LICENSE file for copyright and license details. */
            2 #include "arg.h"
            3 
            4 #define LEN(x) (sizeof (x) / sizeof *(x))
            5 
            6 extern char *argv0;
            7 
            8 char *agetcwd(void);
            9 void apathmax(char **, long *);
           10 int readuevent(const char *);
           11 int devtype(const char *);
           12 void enprintf(int, const char *, ...);
           13 void eprintf(const char *, ...);
           14 void weprintf(const char *, ...);
           15 long estrtol(const char *, int);
           16 void recurse(const char *, void (*)(const char *));
           17 #undef strlcpy
           18 size_t strlcpy(char *, const char *, size_t);