View Single Post
Old 12-23-2014, 02:34 AM   #22
Question the trends!
REACTOR's Avatar
Join Date: Apr 2011
Location: Malaysia
Posts: 1,162
Default Re: Problem: Functions In C

I am learning structs, and so far, things are going well, but... What I want to do is return a character type variable to a struct variable in a different module, can someone explain to me how to do that.

I have something like this: carer.ID = ( Blah, Blah, Blah, Blah );

In the custom function I have something like this:

char f ( char Blah... )
char code[5];

code[0] = blah1[0]
code[1] = blah2[0]
return (*code);
REACTOR is offline   Reply With Quote