Annotation of coherent/d/usr/lib/scn/noWhite.c, revision 1.1

1.1     ! root        1: #include <scn.h>
        !             2: #include <ctype.h>
        !             3: /*
        !             4:  * Check that field has no whitespace.
        !             5:  */
        !             6: noWhite(s)
        !             7: register unsigned char *s;
        !             8: {
        !             9:        unsigned char c;
        !            10: 
        !            11:        while (c = *s++) {
        !            12:                if (isspace(c)) {
        !            13:                        showError("White space in field use \\s for space");
        !            14:                        return(0);
        !            15:                }
        !            16:        }
        !            17:        return(1);
        !            18: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.