open 192.1.1.111
basheer
test123
bi
cd /ftp
mget report.*
bye

--------------
I run this from a win script (ftp -i -v -s:ftp1.bat)

I want to write a C program to do the same.
compile it and give exe to users to run.

(I dont want the user to know login name and passwd) basically avoiding any access to unix other than getting some files when a user wants to)

How can I do this in C program