X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/7111aba92b83fff6b0ac8637dd1f6e2fa287ac8c..41a82a7ecba04be5b27b3ffc813e2f34d2786a38:/h/utils.h?ds=sidebyside diff --git a/h/utils.h b/h/utils.h index 00249be4..9e515989 100644 --- a/h/utils.h +++ b/h/utils.h @@ -58,6 +58,20 @@ char *nmh_strcasestr (const char *, const char *); */ int contains8bit(const char *start, const char *end); +/* + * See if file has any 8-bit bytes. + * Arguments include: + * + * fd - file descriptor + * eightbit - address of result, will be set to 1 if the file contains + * any 8-bit bytes, 0 otherwise. + * + * Returns OK on success, NOTOK on read failure. + * + */ +int scan_input (int fd, int *eightbit); + + /* * Compares prior version of nmh with current version. Returns 1 * if they compare the be the same, 0 if not.