Changes in / [cf3aee19:2654afb] in mainline
- Location:
- uspace
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/Makefile.common
rcf3aee19 r2654afb 415 415 416 416 $(DEPEND): $(PRE_DEPEND) 417 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -- $(SOURCES) > $@ 2> /dev/null 418 makedepend -f - -o.test.o -- $(DEPEND_DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(TEST_CFLAGS) -- $(TEST_SOURCES) >> $@ 2> /dev/null 417 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) $(EXTRA_CFLAGS) -- $(SOURCES) $(TEST_SOURCES) > $@ 2> /dev/null 419 418 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@ 420 419 -
uspace/lib/c/Makefile
rcf3aee19 r2654afb 169 169 TEST_SOURCES = \ 170 170 test/main.c \ 171 test/sprintf.c \ 172 test/str.c 171 test/sprintf.c 173 172 174 173 include $(USPACE_PREFIX)/Makefile.common -
uspace/lib/c/generic/str.c
rcf3aee19 r2654afb 534 534 535 535 if (c1 == 0 || c2 == 0) 536 break; 536 break; 537 537 } 538 538 … … 588 588 break; 589 589 590 ++len; 590 ++len; 591 591 } 592 592 … … 1058 1058 memmove(str, &str[pos], str_sz - pos); 1059 1059 pos = str_sz - pos; 1060 str[ pos] = '\0';1060 str[str_sz - pos] = '\0'; 1061 1061 } 1062 1062 } … … 1151 1151 } 1152 1152 1153 /** Convert string to a number. 1153 /** Convert string to a number. 1154 1154 * Core of strtol and strtoul functions. 1155 1155 * … … 1197 1197 str += 2; 1198 1198 } 1199 } 1199 } 1200 1200 } 1201 1201 … … 1236 1236 *endptr = (char *) str; 1237 1237 1238 if (nptr == str) { 1238 if (nptr == str) { 1239 1239 /*FIXME: errno = EINVAL*/ 1240 1240 return 0; … … 1267 1267 if ((sgn) && (number == (unsigned long) (LONG_MAX) + 1)) { 1268 1268 /* FIXME: set 0 to errno */ 1269 return number; 1269 return number; 1270 1270 } 1271 1271 /* FIXME: set ERANGE to errno */ 1272 return (sgn ? LONG_MIN : LONG_MAX); 1272 return (sgn ? LONG_MIN : LONG_MAX); 1273 1273 } 1274 1274 -
uspace/lib/c/test/main.c
rcf3aee19 r2654afb 33 33 34 34 PCUT_IMPORT(sprintf); 35 PCUT_IMPORT(str);36 35 37 36 PCUT_MAIN()
Note:
See TracChangeset
for help on using the changeset viewer.