summaryrefslogtreecommitdiff
path: root/inotail.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2007-06-11 17:46:50 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2007-06-11 17:46:50 +0200
commit5015c1eb9a07b2f8351249eac62ab1fe55f03395 (patch)
treeac72a070d44df32b1a3100db91d430ad4952f743 /inotail.h
parent01f54bb5e9a1d6373a508859dcc809f5cdb5cd64 (diff)
inotail.c/.h: Implement is_digit to save some bytes of ctype.h inclusion
Diffstat (limited to 'inotail.h')
-rw-r--r--inotail.h2
1 files changed, 2 insertions, 0 deletions
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