c:结构体指针加减法
gcc 编译器会根据指针类型对绝对地址做右移操作,返回就是实际的元素个数。[root@vmtca-2003 test]# cat struct.c#include <stdio.h>#include <string.h>typedef struct test{ int a; int b;} TEST; (sizeof 8)int main(){ TEST a[10]; TEST *
Asterisk鉴权算法
客户端发送的鉴权信息如下:Digest username="103", realm="asterisk", nonce="51d89e6e", uri="sip:102@192.168.50.26", algorithm=MD5, response="e9754418dd7dbea9ba740001f8d62598"A
PHP中的函数声明与使用详解
函数
1 函数名是标识符之一,只能有字母数字下划线,开头不能是数字;
函数名的命名,必须符合“小驼峰法