From 5015c1eb9a07b2f8351249eac62ab1fe55f03395 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 11 Jun 2007 17:46:50 +0200 Subject: inotail.c/.h: Implement is_digit to save some bytes of ctype.h inclusion --- inotail.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'inotail.h') diff --git a/inotail.h b/inotail.h index 4c57867..836c1de 100644 --- a/inotail.h +++ b/inotail.h @@ -29,6 +29,8 @@ struct file_struct { #define IS_TAILABLE(mode) \ (S_ISREG(mode) || IS_PIPELIKE(mode) || S_ISCHR(mode)) +#define is_digit(c) ((c) >= '0' && (c) <= '9') + #ifdef DEBUG # define dprintf(fmt, args...) fprintf(stderr, fmt, ##args) #else -- cgit v1.2.3-54-g00ecf