Basic mid now throws an error on out-of-bounds parameters rather than returning
authorDavid Given <dg@cowlark.com>
Tue, 5 Jun 2018 00:53:56 +0000 (09:53 +0900)
committerDavid Given <dg@cowlark.com>
Tue, 5 Jun 2018 00:53:56 +0000 (09:53 +0900)
commit3f049a4c2910f3a7035c7a4784b0eaa0e121725b
treeb13821b7e43503c91cceb91daedcef18f9c1481f
parent9dede01efe2ff6dbaa66d1a5013289e4a0e3fb0a
Basic mid now throws an error on out-of-bounds parameters rather than returning
an uninitialised pointer (and crashing).

Fixes: #54
lang/basic/lib/lib.h [new file with mode: 0644]
lang/basic/lib/string.c