mmap函数简介: mmap函数是unix/linux下的系统调用,来看<Unix Netword programming>卷二12.2节对mmap的介绍: The mmap function maps either a file or a Posix shared memory object into the address space of a process.We use this function for three purposes: 1. with a regular file t…
1.变量和参数的设置 //将IP地址和端口放入到参数中lr_save_string("192.168.1.133:8081","ip"); //计算变量数组的元素个数int arr_m1[100]; int len1=0len1=sizeof(arr_m1)/sizeof(int); //返回值字符串的长度char *tempStr="test is a house";int len=0;len=strlen(tempStr); //在globa…