Convert my shell script to C programming HELP!!

I had try to create a basic shell script. So now im trying to convert in to C-programming language can some one guide/help me out with it?(BTW IM USING A LINUX/UNIX/ORACLE SYSTEM) CODE BELOW

!/bin/bash

for i in `ls -1 /cslab/home/JAZEL/`
do
cp -uv $i /cslab/home/JAZEL/cs295/$i.`date +%m%d%Y`
done

What have you tried?

Nygenesis,

>> I had try to create a basic shell script. So now im trying to convert in to C-programming language.
-- The shell script commands are already been converted from C to executable, so that you ll find it easier to write a script to perform the tasks easier.
-- Why you would like to write a C-program for that.
-- You have to iterate the loop in C , then you have to create a C-program similar to cp, to replace cp command, if you are not at all using the cp command.
-- or use the system function.

Btw, what have you tried so far.