search for: 35f995d

Displaying 1 result from an estimated 1 matches for "35f995d".

Did you mean: 35995
2009 Nov 09
1
use STREQ(a,b), not strcmp(a,b) == 0
...NEQLEN(a,b,n) (strncasecmp((a),(b),(n)) != 0) +#define STRPREFIX(a,b) (strncmp((a),(b),strlen((b))) == 0) + extern hive_h *hivex_open (const char *filename, int flags); extern int hivex_close (hive_h *h); extern hive_node_h hivex_root (hive_h *h); diff --git a/src/guestfs.h b/src/guestfs.h index 35f995d..e89f744 100644 --- a/src/guestfs.h +++ b/src/guestfs.h @@ -30,6 +30,16 @@ extern "C" { #endif +#define STREQ(a,b) (strcmp((a),(b)) == 0) +#define STRCASEEQ(a,b) (strcasecmp((a),(b)) == 0) +#define STRNEQ(a,b) (strcmp((a),(b)) != 0) +#define STRCASENEQ(a,b) (strcasecmp((a),(b)) != 0) +...