i want to send a file using c in an adhoc network in mt linux platform...plz help me with the header files and functions that i need to use
+2
A:
You could just use the system()
call to invoke scp
, e.g.
system("scp file.dat user@remote-host:path/to/directory/");
$ man system
$ man scp
Paul R
2010-09-22 09:11:59