C functions to easily allow your program to have fraction input/output