From f435f0412aa4ca631aa178d10ed33008e34f37cb Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 10 Feb 2016 21:05:22 -0600 Subject: Factor out strnstr() since posix hasn't got it, and add a config option for the deeply sad passwd heuristics that don't even check numbers and punctuation. --- lib/lib.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/lib.h') diff --git a/lib/lib.h b/lib/lib.h index 2714ad3d..dac3b67f 100644 --- a/lib/lib.h +++ b/lib/lib.h @@ -199,6 +199,7 @@ int qstrcmp(const void *a, const void *b); void create_uuid(char *uuid); char *show_uuid(char *uuid); char *next_printf(char *s, char **start); +char *strnstr(char *line, char *str); #define HR_SPACE 1 // Space between number and units #define HR_B 2 // Use "B" for single byte units -- cgit v1.2.3