Writing some code without libc challenge