Annotation of coherent/b/lib/libc/gen/old/strncat.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Coherent Standard I/O Library
        !             3:  * Catenate 2 fixed length strings.
        !             4:  */
        !             5: 
        !             6: #include <stdio.h>
        !             7: 
        !             8: char *
        !             9: strncat(as1, s2, n)
        !            10: char *as1;
        !            11: register char *s2;
        !            12: register unsigned n;
        !            13: {
        !            14:        register char *s1;
        !            15: 
        !            16:        s1 = as1;
        !            17:        while (*s1++)
        !            18:                ;
        !            19:        for (s1--; n && *s2; n--)
        !            20:                *s1++ = *s2++;
        !            21:        *s1 = 0;
        !            22:        return (as1);
        !            23: }

unix.superglobalmegacorp.com

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