Damien George
dbc77cf718
lib/libc: Fix string0's implementation of strncpy.
...
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-09-04 17:36:51 +03:00
Thorsten von Eicken
a648a818a0
lib/libc: Add implementation of strncpy.
2020-09-04 17:36:51 +03:00
Amir Gonnen
2c6d171f25
Update Micropython. ILI9341/XPT2046 fixes
2019-11-02 01:09:15 +02:00
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.
2017-07-31 18:35:40 +10:00
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.
2016-05-02 18:53:21 +03:00
Paul Sokolovsky
bd9de5ec90
lib/libc/string0: Add strncpy() implementation.
2016-05-02 18:38:19 +03:00
Damien George
64ececb72f
lib/libc/string0: Use uintptr_t instead of uint32_t.
...
This makes the code portable to non-32-bit architectures.
2015-12-31 14:11:18 +00:00
Daniel Campora
abea1c38a9
lib/libc: Add memchr. We already have strchr, but memchr is useful too.
2015-04-28 16:48:20 +02:00
Damien George
f53a8e712f
lib/libc/string0.c: Remove include of std.h, replace with string.h.
...
Much more portable this way.
2015-04-18 14:27:55 +01:00
Paul Sokolovsky
3a84c8b58d
string0.c: Move from stmhal/ to lib/.
2015-04-05 21:57:55 +03:00