Hopefully this is a little easier to read. Also it's a little faster since we're initializing pos to f_len - 1 instead of 0.