Is it asking too much if you show which code lines are causing the errrors?
Obviously, a void function don't has a return value that could be assigned to a variable
Code:
txt = rtrim(tnum);
A variable definition "char txt[];" doesn't make sense. It's not a pointer definition and it doesn't allocate storage. The construct name[] is only meaningful for initialized arrays, external declaration or formal function parameters.
Ok I understood what you telling. I changed it & seems to be ok.
- - - Updated - - -
I have made a mistake. rtrim is a function used in MikroC to trim the trailing space from array. I have written a function for this and its incompatible for this. Do you know any function that I can do this in MPLAB?