Annotation of 43BSD/usr.bin/uucp/index.c, revision 1.1.1.1

1.1       root        1: #ifndef lint
                      2: static char sccsid[] = "@(#)index.c    5.2 (Berkeley) 1/22/85";
                      3: #endif
                      4: 
                      5: #include <stdio.h>
                      6: 
                      7: /*
                      8:  *     return pointer to character c
                      9:  *
                     10:  *     return codes:
                     11:  *             NULL  -  character not found
                     12:  *             pointer  -  pointer to character
                     13:  */
                     14: 
                     15: char *
                     16: index(str, c)
                     17: register char c, *str;
                     18: {
                     19:        for (; *str != '\0'; str++) {
                     20:                if (*str == c)
                     21:                        return str;
                     22:        }
                     23: 
                     24:        return NULL;
                     25: }

unix.superglobalmegacorp.com

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