add a function to a.c