I am looking for a way to get floating point input from a user.
My way of going about this is to use a self-made getstrn function and plug that into another function
Use strtod, that's what it's for. And fgets can replace your safeGetString function.
strtod
fgets
safeGetString