cppcheck/samples/autoVariables/good.c

14 lines
108 B
C

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