error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token

c, gcc, token

Solution

In C, if char * getFechaHora, this is your function and the two (time_t & tiempoPuro) are arguments you should declare the function as:

char * getFechaHora(*type* time_t, *type* tiempoPuro);

else if the second is a variable, declare as

char * getFechaHora(time_t *tiempoPuro);

Problem

I get this error in a C header file in this line : ``` char * getFechaHora(time_t & tiempoPuro); ``` In a C source code file i am including the header file and giving the function an implementation ``` char * getFechaHora(time_t &tiempoPuro){...} ``` also in my header file i am including correctly the "time.h" library.

Original source