char * The_Function ( int Element_Count , char Padding ) { char Store [ Element_Count ]; memset ( Store , Element_Count , Padding ); return &Store[ 0 ]; }
are reason why you are committing suicide by returning the address of a automatic variable?
Well, the function would do that if it actually compiled without errors, which it doesn't. Non-constant array sizes aren't legal in C.
@OP: What's this, homework? "Find all the errors"?
What does this have to do with any of the Keil tools?
View all questions in Keil forum