Annotation of coherent/b/lib/libc/string/strncat.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * strncat.c
                      3:  * ANSI 4.11.3.2.
                      4:  * Concatenate fixed length strings.
                      5:  */
                      6: 
                      7: #include <string.h>
                      8: 
                      9: char *strncat(s1, s2, n) char *s1; register char *s2; size_t n;
                     10: {
                     11:        register char *cp;
                     12: 
                     13:        for (cp = s1; *cp++; )
                     14:                ;
                     15:        for (cp--; n-- && *s2; )
                     16:                *cp++ = *s2++;
                     17:        *cp = 0;                        /* Always NUL-terminate */
                     18:        return (s1);
                     19: }

unix.superglobalmegacorp.com

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