指针使用R-1-3-3强制

禁止对指针型参数重新赋值

对指针型参数重新赋值
test.c
1#include <stdlib.h>
2
3void foo(int *px)
4{
5 px = NULL;
禁止对指针型参数重新赋值 [gjb8114-r-1-3-3]
6}
对参数指针指向的内存赋值
test.c
1void foo(int *px)
2{
3 *px = 0;
4}