wmclockmon: handle fgets NULL returns and zero-length lines
[dockapps.git] / wmmenu / utils.h
blob9394c4a47f4b191efb8223d5b1bc40e7bd86cd3f
1 #ifndef utils_h_
2 #define utils_h_
4 #include <stdio.h>
5 #include <string.h>
6 #include "types.h"
8 extern char * File_ReadAll (FILE *) ;
9 extern bool File_FindInPath (char * out, int outSz,
10 const char * path, const char * basename) ;
12 #define streq(S1,S2) (strcmp ((S1), (S2)) == 0)
13 #define streql(S1,S2,L) (strncmp ((S1), (S2), (L)) == 0)
15 extern char * File_ReadOutputFromCommand (const char * cmd) ;
17 #endif /* utils_h_ */