- Timestamp:
- 07/15/2017 11:23:25 AM (7 years ago)
- Branches:
- master
- Children:
- e102943
- Parents:
- c80943f
- Location:
- libsm
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
libsm/memcmp.c
rc80943f rdade7a0 18 18 if (cp1 != cp2) 19 19 while (--n >= 0) 20 if ( diff = *cp1++ - *cp2++)20 if ((diff = *cp1++ - *cp2++)) 21 21 return(diff); 22 22 -
libsm/memcmpu.c
rc80943f rdade7a0 20 20 21 21 if (isascii(c1) && islower(c1)) 22 c1 = _toupper(c1);22 c1 = (int8_t)_toupper(c1); 23 23 24 24 if (isascii(c2) && islower(c2)) 25 c2 = _toupper(c2);25 c2 = (int8_t)_toupper(c2); 26 26 27 27 if (c1 < c2) -
libsm/str2lc.c
rc80943f rdade7a0 13 13 register int8_t *r = s; 14 14 15 while ( c = *s)16 *s++ = tolower(c);15 while ((c = *s)) 16 *s++ = (int8_t)tolower(c); 17 17 18 18 return(r); -
libsm/str2uc.c
rc80943f rdade7a0 13 13 register int8_t *r = s; 14 14 15 while ( c = *s)16 *s++ = toupper(c);15 while ((c = *s)) 16 *s++ = (int8_t)toupper(c); 17 17 18 18 return(r); -
libsm/strcat.c
rc80943f rdade7a0 17 17 os1 = s1; 18 18 19 while (*s1++)19 while (*s1++) 20 20 ; 21 21 22 22 --s1; 23 23 24 while (*s1++ = *s2++)24 while ((*s1++ = *s2++)) 25 25 ; 26 26 -
libsm/strcpy.c
rc80943f rdade7a0 17 17 os1 = s1; 18 18 19 while (*s1++ = *s2++)19 while ((*s1++ = *s2++)) 20 20 ; 21 21 -
libsm/strltrm.c
rc80943f rdade7a0 24 24 ++rp; 25 25 26 while ( c = *rp++)26 while ((c = *rp++)) 27 27 *lp++ = c; 28 28 -
libsm/strncat.c
rc80943f rdade7a0 18 18 os1 = s1; 19 19 20 while (*s1++)20 while (*s1++) 21 21 ; 22 22 23 23 --s1; 24 24 25 while (*s1++ = *s2++)25 while ((*s1++ = *s2++)) 26 26 if(--n < 0) { 27 27 -
libsm/strtol.c
rc80943f rdade7a0 39 39 } 40 40 41 if (base == 0) 41 if (base == 0) { 42 42 if (c != '0') 43 43 base = 10; … … 46 46 else 47 47 base = 8; 48 } 49 48 50 /* 49 51 for any base > 10, the digits incrementally following
Note:
See TracChangeset
for help on using the changeset viewer.