That sample resembles material related to:
BSF_FourX
Path-Finding using Breadth First Search Algorithm
ROGERIO DE LEON PEREIRA
joshua@fourx.com.br
Conversion of an alternate BSF (Breadth Search First) sample here to Lite-C, should be fairly easy.
Of course, such tasks are better left to those with more interest in Lite-C conversions.