#include <stdio.h>
#include <stdlib.h>

typedef struct _Foo_
{
    int number;
    char character;
    float ratio;

} Foo;

Foo* createFoo()
{
	return (Foo*)malloc(sizeof(Foo));
}

void destroyFoo(Foo** foo)
{
    if (!foo | !(*foo)) return;
    free(*foo);
    *foo = NULL;
}

int main()
{
	Foo* a = NULL;
    Foo* b = createFoo();
    
    destroyFoo(NULL);
    destroyFoo(&a);
    destroyFoo(&b);
	
	printf("success");
	return 0;
}
