In an older version of gcc, I could cast away const.
When porting to gcc 4.1.2, the compiler complains.
In C++, there is a const_cast<>, but how should this be done in C?
When porting to gcc 4.1.2, the compiler complains.
Code:
char * const buffer; ... (char*)buffer = malloc(SIZE);
Comment