fatbase

portable OpenBSD tools
git clone git://git.2f30.org/fatbase
Log | Files | Refs

util.h (405B)


      1 #include <sys/stat.h>
      2 #include <stdio.h>
      3 #include <stddef.h>
      4 
      5 #ifndef SIZE_MAX
      6 #define SIZE_MAX ((size_t)-1)
      7 #endif
      8 
      9 char *fgetln(FILE *, size_t *);
     10 
     11 void warnc(int, const char *, ...);
     12 void vwarnc(int, const char *, va_list);
     13 void errc(int, int, const char *, ...);
     14 void verrc(int, int, const char *, va_list);
     15 
     16 size_t strlcat(char *, const char *, size_t);
     17 size_t strlcpy(char *, const char *, size_t);