added rootfindc.c