Adding initial .c file, copied from .cpp version. Will translate from there.