float f; f=atof("123.00"); lr_output_message("%f",f); |
doubleatof (const char *string); float f; f=atof("123.00"); lr_output_message("%.2f",f); |
int lr_save_string (const char *param_value, const char *param_name); |
int ftp_put ( char *transaction, LAST); |
// Send the file "ftp_file.txt" to the for_jon directory. ftp_put("Ftp_Put", "ATH=f:/ftp_file.txt", "TARGET_PATH=/pub/for_jon", "MODE=ASCII", ENDITEM , LAST); |
// Send the file "ftp_file.txt" to the for_jon directory. ftp_put("Ftp_Put", "SOURCE_PATH=f:/ftp_file.txt", "TARGET_PATH=/pub/for_jon", "MODE=ASCII", ENDITEM , LAST); |
// Send the file "ftp_file.txt" to the for_jon directory. ftp_put("Ftp_Put", "SOURCE_PATH=f:/ftp_file.txt", "TARGET_PATH=/pub/for_jon/ftp_file.txt", "MODE=ASCII", ENDITEM , LAST); |
In the following example, the ftp_get_ex function gets the file ftp_file.txt from the FTP server. // Send the file "ftp_file.txt" to the for_jon directory. ftp_put_ex(&ftp, "Ftp_Put", "ATH=f:/ftp_file.txt", "TARGET_PATH=/pub/for_jon", "MODE=ASCII", ENDITEM, LAST); |
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) | Powered by Discuz! X3.2 |