I'm going to go mad... I've got a function with the type char, and I'm trying to return a multi-dimentional array at the end of the function:
Code:
char char_to_bin( char sOutput[1024] ); // thats my current prototyping
int main ();
{
char sOuput[1024];
//skip a lot of stuff
char_to_bin(sOutput);
return 0;
}
char char_to_bin( char sOutput[1024] )
{
char sOutput2[1024][7];
//skip a lot of code... that part works
return sOutput2;
}
And I get this error:
error C2440: 'return' : cannot convert from 'char [1024][7]' to 'char'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
I can see what the problem is, but I have no clue how to fix it.