- 博客(3)
- 资源 (2)
- 收藏
- 关注
原创 解析IP的方法
Function: /* * Input:sip * Output:ip * Return:true/false * * Reference: * cutApart-http://blog.youkuaiyun.com/smartup/article/details/8704094 */ bool formatIP(const char* sip,unsigned long* ip) { char*
2013-03-26 01:24:39
597
原创 c语言,模仿js中split方法的函数
仿split函数: bool cutApart(const char* in, char*** out, char delimiter, int fragments) { int i; char* p; char** pstart; char* space = (char*)calloc(strlen(in), sizeof(char)); strcpy(space,
2013-03-22 00:13:12
813
原创 c语言,函数参数如何作为输出
由于工作的原因,已经一年没有接触c了,最近因为一些事情重新写了一个c的程序,却遇到函数无法输出的问题(我需要我的函数有输入,输出,以及返回值)。于是重新做了这个测试: #include #include #include int y = 100; void test1(int* p) { int x = 100; p = &x; } void test2(int* p) {
2013-03-20 23:58:19
4536
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人