summaryrefslogtreecommitdiff
path: root/lib/libc/string0.c
AgeCommit message (Collapse)Author
2021-07-12shared: Introduce new top-level dir and move 1st party lib code there.Damien George
This commit moves all first-party code developed for this project from lib/ to shared/, so that lib/ now only contains third-party code. The following directories are moved as-is from lib to shared: lib/libc -> shared/libc lib/memzip -> shared/memzip lib/netutils -> shared/netutils lib/timeutils -> shared/timeutils lib/upytesthelper -> shared/upytesthelper All files in lib/embed/ have been moved to shared/libc/. lib/mp-readline has been moved to shared/readline. lib/utils has been moved to shared/runtime, with the exception of lib/utils/printf.c which has been moved to shared/libc/printf.c. Signed-off-by: Damien George <damien@micropython.org>
2020-07-22lib/libc: Fix string0's implementation of strncpy.Damien George
Fixing 98e583430fb7b793119db27bad9f98119e81579f, the semantics of strncpy require that the remainder of dst be filled with null bytes. Signed-off-by: Damien George <damien@micropython.org>
2020-07-20lib/libc: Add implementation of strncpy.Thorsten von Eicken
2019-10-30lib/libc/string0: Add simple implementations of strspn and strcspn.Damien George
They are needed for littlefs.
2017-07-31all: Use the name MicroPython consistently in commentsAlexander Steffen
There were several different spellings of MicroPython present in comments, when there should be only one.
2016-05-02lib/libc/string0: Remove better-than-standard strncpy() implementation.Paul Sokolovsky
ANSI C doesn't require that strncpy() produced null-terminated string, so it's basicly useless for string manipulation.
2016-05-02lib/libc/string0: Add strncpy() implementation.Paul Sokolovsky
2015-12-31lib/libc/string0: Use uintptr_t instead of uint32_t.Damien George
This makes the code portable to non-32-bit architectures.
2015-04-28lib/libc: Add memchr. We already have strchr, but memchr is useful too.Daniel Campora
2015-04-18lib/libc/string0.c: Remove include of std.h, replace with string.h.Damien George
Much more portable this way.
2015-04-05string0.c: Move from stmhal/ to lib/.Paul Sokolovsky