wuchy143
Member
Hi All,
I'm relatively new to C and was wondering what was going on with this piece of code(it's just a function)
I thought functions are to be declared such that:
How come there is a U16 and then a space in the original code I posted. What am I missing?
I'm relatively new to C and was wondering what was going on with this piece of code(it's just a function)
Code:
U16 read_zero_push_state(void)
{
U16 return_val;
//disable all interrupts for var read
//INTCONbits.GIE = 0;
return_val = (zero_push & DEBOUNCE_MASK);
//enable all interrupts
//INTCONbits.GIE = 1;
return(return_val);
}
I thought functions are to be declared such that:
Code:
My_Function(void)
{
do something
}
How come there is a U16 and then a space in the original code I posted. What am I missing?