inpcom.c, inp_get_func_from_line(), add some minimalistic syntax error check
inpcom.c, inp_sort_params(), simplify card insertion