Libc optimisations

Incorporated fputc,memccpy,memcmp assembly rewrite.