指针使用R-1-3-10强制
禁止文件指针未关闭
未关闭文件指针
test.c
1#include <stdio.h>23void foo(void)4{5 FILE *file = fopen("file.txt", "r");禁止文件指针未关闭 [gjb8114-r-1-3-10]6}
已关闭文件指针
test.c
1#include <stdio.h>23void foo(void)4{5 FILE *file = fopen("file.txt", "r");6 fclose(file);7}