Damien George
d9b7261024
lib/libc: Fix string0's implementation of strncpy.
Fixing 98e583430f
, the semantics of strncpy
require that the remainder of dst be filled with null bytes.
Signed-off-by: Damien George <damien@micropython.org>
4 years ago
Thorsten von Eicken
98e583430f
lib/libc: Add implementation of strncpy.
4 years ago
Damien George
4e1b03d45c
lib/libc/string0: Add simple implementations of strspn and strcspn.
They are needed for littlefs.
5 years ago
Alexander Steffen
55f33240f3
all: Use the name MicroPython consistently in comments
There were several different spellings of MicroPython present in comments,
when there should be only one.
7 years ago
Paul Sokolovsky
c6923f52f0
lib/libc/string0: Remove better-than-standard strncpy() implementation.
ANSI C doesn't require that strncpy() produced null-terminated string, so
it's basicly useless for string manipulation.
9 years ago
Paul Sokolovsky
bd9de5ec90
lib/libc/string0: Add strncpy() implementation.
9 years ago
Damien George
64ececb72f
lib/libc/string0: Use uintptr_t instead of uint32_t.
This makes the code portable to non-32-bit architectures.
9 years ago
Daniel Campora
abea1c38a9
lib/libc: Add memchr. We already have strchr, but memchr is useful too.
10 years ago
Damien George
f53a8e712f
lib/libc/string0.c: Remove include of std.h, replace with string.h.
Much more portable this way.
10 years ago
Paul Sokolovsky
3a84c8b58d
string0.c: Move from stmhal/ to lib/.
10 years ago