C version of range finder: FTL