how to passing cofunc as parameter to another function

"[email protected]" <[email protected]>
Newsgroups gmane.comp.hardware.rabbit-semiconductor
Message-ID <[email protected]>
 Anyone can help me, I get error when passing cofunc as parameter to another function. My code as follows:

cofunc char *getMonth(int num){
   static char *const months[12] = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
   if(num>=1 && num<=12) return months[num-1];
}

void main() {
   char buffer[15];

   costate {
       memset(buffer, '\0', sizeof(buffer));
       memcpy(buffer, wfd getMonth(1), sizeof(buffer)); // error in here
       printf("Month: %s", buffer);
   }
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.