We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be7cfd8 commit 8e5472eCopy full SHA for 8e5472e
6 files changed
samples/AssignmentAddressToInteger/bad.c
@@ -1,4 +1,4 @@
1
-int foo(int *p)
+static int foo(int *p)
2
{
3
int a = p;
4
return a + 4;
samples/AssignmentAddressToInteger/good.c
-int* foo(int *p)
+static int* foo(int *p)
return p + 4;
}
samples/autoVariables/bad.c
-void foo(int **a)
+static void foo(int **a)
int b = 1;
*a = &b;
samples/autoVariables/good.c
**a = b;
samples/incorrectLogicOperator/bad.c
@@ -1,5 +1,5 @@
-void foo(int x) {
+static void foo(int x) {
if (x >= 0 || x <= 10) {}
5
samples/incorrectLogicOperator/good.c
if (x >= 0 && x <= 10) {}
0 commit comments