Annotation of 40BSD/cmd/uucp/prefix.c, revision 1.1.1.1

1.1       root        1: 
                      2: 
                      3: /*******
                      4:  *     prefix(s1, s2)  check s2 for prefix s1
                      5:  *     char *s1, *s2;
                      6:  *
                      7:  *     return 0 - !=
                      8:  *     return 1 - == 
                      9:  */
                     10: 
                     11: prefix(s1, s2)
                     12: char *s1, *s2;
                     13: {
                     14:        char c;
                     15: 
                     16:        while ((c = *s1++) == *s2++)
                     17:                if (c == '\0')
                     18:                        return(1);
                     19:        return(c == '\0');
                     20: }

unix.superglobalmegacorp.com

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