Add most functions from char.c to interfaces.

Introduced interfaces: chr, mapif, loginif.