library: fputc rewritten

Signed-off-by: Erkin Alp Güney <erkinalp9035@gmail.com>

Conflicts:
	Library/libs/fputc.c