use libc for lib/string and lib/memcopy