The following commit has been merged in the master branch:
commit c91dc9f7e97c8f1299c3aea5aec6dbee6a909b7c
Author: Ian Jackson <[EMAIL PROTECTED]>
Date:   Thu Mar 20 07:12:05 2008 +0200

    Add new cisspace function

diff --git a/ChangeLog b/ChangeLog
index 02345a7..165bb26 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2008-03-20  Ian Jackson  <[EMAIL PROTECTED]>
 
+       * lib/dpkg.h (cisspace): New prototype.
+       * lib/utils.c (cisspace): New function definition.
+
+2008-03-20  Ian Jackson  <[EMAIL PROTECTED]>
+
        * src/main.h (pkgadminfile): Move prototype to ...
        * lib/dpkg-db.h: ... here.
        * src/help.c (pkgadminfile): Move function definition to ...
diff --git a/lib/dpkg.h b/lib/dpkg.h
index 17b8f28..7184c68 100644
--- a/lib/dpkg.h
+++ b/lib/dpkg.h
@@ -362,6 +362,7 @@ extern volatile int onerr_abort;
 
 int cisdigit(int c);
 int cisalpha(int c);
+int cisspace(int c);
 
 int fgets_checked(char *buf, size_t bufsz, FILE *f, const char *fn);
 int fgets_must(char *buf, size_t bufsz, FILE *f, const char *fn);
diff --git a/lib/utils.c b/lib/utils.c
index 632df1e..87f6b7c 100644
--- a/lib/utils.c
+++ b/lib/utils.c
@@ -35,6 +35,12 @@ int cisalpha(int c) {
 }
 
 int
+cisspace(int c)
+{
+       return (c == '\n' || c == '\t' || c == ' ');
+}
+
+int
 fgets_checked(char *buf, size_t bufsz, FILE *f, const char *fn)
 {
        int l;

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to