cppcheck/samples/autoVariables/good.c

13 lines
107 B
C

void foo(int **a)
{
int b = 1;
**a = b;
}
int main()
{
int b;
int *c = &b;
foo(&c);
}