cppcheck/samples/autoVariables/good.c

13 lines
107 B
C
Raw Permalink Normal View History

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