一、lr_save_string函数
1.该函数主要是将程序中的常量或变量保存为参数。
格式:
//将常量保存为参数 lr_save_string("777","page"); web_url(http://www.sina.com.cn/{page}); lr_eval_string("{page}"); //将变量保存为参数,tmp为变量 lr_save_string(tmp,"page"); web_url(http://www.sina.com.cn/{page}); lr_eval_string("{page}");
二、sprintf函数
常用该函数代替itoa,将整数格式化为字符串形式。
例如:
int page=0; char page_ch[60]; page=page + 10; sprintf(page_ch,"%d",page);