LIBSM.DOC Last updated 1987-04-29 Memory Functions ---------------- memccpy.c --------- char * memccpy(s1, s2, c, n) char *s1, *s2; int c, n; Copy s2 to s1, stopping if character c is copied. Copy no more than n bytes. Return a pointer to the byte after character c in the copy, or NULL if c is not found in the first n bytes. memchr.c -------- char * memchr(sp, c, n) char *sp, c; int n; Return the ptr in sp at which the character c appears; NULL if not found in n chars; don't stop at \0. memcmp.c -------- int memcmp(s1, s2, n) char *s1, *s2; int n; Compare n bytes: s1>s2: >0 s1==s2: 0 s1s2: >0 s1==s2: 0 s1s2: >0 s1==s2: 0 s1s2; >0 s1==s2; 0 s1