Annotation of 40BSD/cmd/cifplot/strip.c, revision 1.1

1.1     ! root        1: /*******************************************************************
        !             2: *                                                                  *
        !             3: *    File: CIFPLOT/strip.c                                         *
        !             4: *    Written by Dan Fitzpatrick                                    *
        !             5: *    copyright 1980 -- Regents of the University of California     *
        !             6: *                                                                  *
        !             7: ********************************************************************/
        !             8: 
        !             9: 
        !            10: #include <stdio.h>
        !            11: 
        !            12: char *strip(s)
        !            13: char *s;
        !            14: {
        !            15:    char *t;
        !            16:    while (*s == ' ' || *s == '\t' || *s == '\n') s++;
        !            17:    t = s;
        !            18:    while (*t != ' ' && *t != '\t' && *t != '\n' && *t != 0) t++;
        !            19:    *t = 0;
        !            20:    return(s);
        !            21:    }
        !            22: 

unix.superglobalmegacorp.com

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