ScanLoop.c (a simple starter) for your project