usage of ftp in C program

thank you of your help

my application system is :

windows 2000 pc --- HP unix minicom ---- windows NT

I am programming with C language on HP unix minicom , I want to get files with ftp command from windows 2000 pc to HP unix minicom in my program, and also put files with ftp command from HP unix minicom to windows NT in my program.
not into command prompt .

hope for your help

Build a file called ".netrc" in your home directory to automate the connection, then just use a system() call from your program. See the netrc man page for details on that file.