Fix C version of TEXT function to accept zero (the number) as a format argument