|
|
||
|
On Mar 04, 2004, at 16:19, Luiz Henrique de Figueiredo wrote:
I wrote a simple (public-domain) implementation of most of the functions from
the standard C library that are needed by the Lua core. Unfortunately, it
does not contain vsprinf, but there must be a public-domain or MIT-licencsed
implementation of it somewhere.
--lhf
/* * libc.c * functions from the standard C library that are needed by the Lua core */
char *strncpy(char *d, const char *s, size_t n) { char *t=d; while (n-- && (*t++=*s++)) ; return d; }
David Jones