- Timestamp:
- 07/08/2017 02:42:31 PM (7 years ago)
- Branches:
- master
- Children:
- 342a56f
- Parents:
- 46d8069
- Location:
- libsm
- Files:
-
- 33 edited
Legend:
- Unmodified
- Added
- Removed
-
libsm/index.c
r46d8069 r0580615 6 6 */ 7 7 8 char * 9 index(str, c) 10 register char *str; 11 register char c; 8 char *index(char *str, char c) 12 9 { 13 10 while (*str) { -
libsm/memccpy.c
r46d8069 r0580615 11 11 */ 12 12 13 char * 14 memccpy(s1, s2, c, n) 15 register char *s1, *s2; 16 register char c; 17 register int n; 13 char *memccpy(char *s1, char *s2, char c, int n) 18 14 { 19 15 while (--n >= 0) -
libsm/memchr.c
r46d8069 r0580615 9 9 */ 10 10 11 char * 12 memchr(sp, c, n) 13 register char *sp, c; 14 register int n; 11 char *memchr(char *sp, char c, int n) 15 12 { 16 13 while (--n >= 0) -
libsm/memcmp.c
r46d8069 r0580615 8 8 */ 9 9 10 int 11 memcmp(s1, s2, n) 12 register char *s1, *s2; 13 register int n; 10 int memcmp(char *s1, char *s2, int n) 14 11 { 15 12 register int diff; -
libsm/memcmpu.c
r46d8069 r0580615 8 8 #include "ctype.h" 9 9 10 int 11 memcmpu(s1, s2, n) 12 register char *s1, *s2; 13 int n; 10 int memcmpu(char *s1, char *s2, int n) 14 11 { 15 12 register char c1, c2; -
libsm/memcpy.c
r46d8069 r0580615 9 9 */ 10 10 11 char * 12 memcpy(s1, s2, n) 13 register char *s1, *s2; 14 register int n; 11 char *memcpy(char *s1, char *s2, int n) 15 12 { 16 13 register char *os1 = s1; -
libsm/memcpyw.c
r46d8069 r0580615 9 9 */ 10 10 11 short * 12 memcpyw(s1, s2, n) 13 register short *s1, *s2; 14 register int n; 11 short *memcpyw(short *s1, short *s2, int n) 15 12 { 16 13 register short *os1 = s1; -
libsm/memset.c
r46d8069 r0580615 9 9 */ 10 10 11 char * 12 memset(sp, c, n) 13 register char *sp, c; 14 register int n; 11 char *memset(char *sp, char c, int n) 15 12 { 16 13 register char *sp0 = sp; -
libsm/memsetw.c
r46d8069 r0580615 9 9 */ 10 10 11 short * 12 memsetw(sp, w, n) 13 register short *sp, w, n; 11 short *memsetw(short *sp, short w, short n) 14 12 { 15 13 register short *sp0 = sp; -
libsm/rindex.c
r46d8069 r0580615 6 6 */ 7 7 8 char * 9 rindex(str, c) 10 register char *str; 11 char c; 8 char *rindex(char *str, char c) 12 9 { 13 10 register char *cp; -
libsm/str2lc.c
r46d8069 r0580615 6 6 */ 7 7 8 char * 9 str2lc(s) 10 register char *s; 8 char *str2lc(char *s) 11 9 { 12 10 register char c; -
libsm/str2uc.c
r46d8069 r0580615 6 6 */ 7 7 8 char * 9 str2uc(s) 10 register char *s; 8 char *str2uc(char *s) 11 9 { 12 10 register char c; -
libsm/strcat.c
r46d8069 r0580615 9 9 */ 10 10 11 char * 12 strcat(s1, s2) 13 register char *s1, *s2; 11 char *strcat(char *s1, char *s2) 14 12 { 15 13 register char *os1; -
libsm/strccpy.c
r46d8069 r0580615 16 16 */ 17 17 18 char * 19 strccpy(s1, s2, c) 20 register char *s1, *s2, c; 18 char *strccpy(char *s1, char *s2, char c) 21 19 { 22 20 register char *os1; -
libsm/strchr.c
r46d8069 r0580615 10 10 #define NULL 0 11 11 12 char * 13 strchr(sp, c) 14 register char *sp, c; 12 char *strchr(char *sp, char c) 15 13 { 16 14 do { -
libsm/strcmp.c
r46d8069 r0580615 8 8 */ 9 9 10 int 11 strcmp(s1, s2) 12 register char *s1, *s2; 10 int strcmp(char *s1, char *s2) 13 11 { 14 12 if(s1 == s2) -
libsm/strcpy.c
r46d8069 r0580615 9 9 */ 10 10 11 char * 12 strcpy(s1, s2) 13 register char *s1, *s2; 11 char *strcpy(char *s1, char *s2) 14 12 { 15 13 register char *os1; -
libsm/strcspn.c
r46d8069 r0580615 9 9 */ 10 10 11 int 12 strcspn(string, charset) 13 char *string; 14 register char *charset; 11 int strcspn(char *string, char *charset) 15 12 { 16 13 register char *p, *q; -
libsm/strfill.c
r46d8069 r0580615 13 13 */ 14 14 15 char * 16 strfill(s, c, n) 17 register char *s; 18 register char c; 19 register unsigned n; 15 char *strfill(char *s, char c, unsigned n) 20 16 { 21 17 register unsigned i; -
libsm/strlcmp.c
r46d8069 r0580615 15 15 */ 16 16 17 int 18 strlcmp(s,l) 19 char *s, *l[]; 17 int strlcmp(char *s, char *l[]) 20 18 { 21 19 int rc; -
libsm/strlen.c
r46d8069 r0580615 9 9 10 10 11 int 12 strlen(s) 13 register char *s; 11 int strlen(char *s) 14 12 { 15 13 register int n = 0; -
libsm/strltrm.c
r46d8069 r0580615 10 10 #include "stddefs.h" 11 11 12 char * 13 strltrm(s) 14 register char *s; 12 char *strltrm(char *s) 15 13 { 16 14 register char c; -
libsm/strncat.c
r46d8069 r0580615 10 10 */ 11 11 12 char * 13 strncat(s1, s2, n) 14 register char *s1, *s2; 15 register int n; 12 char *strncat(char *s1, char *s2, int n) 16 13 { 17 14 register char *os1; -
libsm/strncmp.c
r46d8069 r0580615 9 9 */ 10 10 11 int 12 strncmp(s1, s2, n) 13 register char *s1, *s2; 14 register int n; 11 int strncmp(char *s1, char *s2, int n) 15 12 { 16 13 if (s1 == s2) -
libsm/strncpy.c
r46d8069 r0580615 9 9 */ 10 10 11 char * 12 strncpy(s1, s2, n) 13 register char *s1, *s2; 14 register int n; 11 char *strncpy(char *s1, char *s2, int n) 15 12 { 16 13 register char *os1 = s1; -
libsm/strpbrk.c
r46d8069 r0580615 9 9 */ 10 10 11 char * 12 strpbrk(string, brkset) 13 register char *string, *brkset; 11 char *strpbrk(char *string, char *brkset) 14 12 { 15 13 register char *p; -
libsm/strrchr.c
r46d8069 r0580615 11 11 #define NULL (char *)0 12 12 13 char * 14 strrchr(sp, c) 15 register char *sp, c; 13 char *strrchr(char *sp, char c) 16 14 { 17 15 register char *r; -
libsm/strrev.c
r46d8069 r0580615 14 14 */ 15 15 16 char * 17 strrev(s1, s2) 18 char *s1; 19 register char *s2; 16 char *strrev(char *s1, char *s2) 20 17 { 21 18 register char *s3; -
libsm/strrevi.c
r46d8069 r0580615 12 12 */ 13 13 14 char * 15 strrevi(s) 16 char *s; 14 char *strrevi(char *s) 17 15 { 18 16 register char *p1, *p2; -
libsm/strrtrm.c
r46d8069 r0580615 10 10 #include "stddefs.h" 11 11 12 char * 13 strrtrm(s) 14 char *s; 12 char *strrtrm(char *s) 15 13 { 16 14 register char *lp, *rp; -
libsm/strspn.c
r46d8069 r0580615 9 9 */ 10 10 11 int 12 strspn(string, charset) 13 char *string; 14 register char *charset; 11 int strspn(char *string, char *charset) 15 12 { 16 13 register char *p, *q; -
libsm/strtok.c
r46d8069 r0580615 13 13 #define NULL (char *)0 14 14 15 extern int strspn( );16 extern char *strpbrk( );15 extern int strspn(char *string, char *charset); 16 extern char *strpbrk(char *string, char *brkset); 17 17 18 char * 19 strtok(string, sepset) 20 char *string, *sepset; 18 char *strtok(char *string, char *sepset) 21 19 { 22 20 register char *p, *q, *r; -
libsm/strtol.c
r46d8069 r0580615 12 12 #define MBASE ('z' - 'a' + 1 + 10) 13 13 14 long 15 strtol(str, ptr, base) 16 register char *str; 17 char **ptr; 18 register int base; 14 long strtol(char *str, char **ptr, int base) 19 15 { 20 16 register long val;
Note:
See TracChangeset
for help on using the changeset viewer.