Mail Archives: djgpp/1999/09/06/09:50:01
In article <37D3883C DOT 7B53440D AT restoel DOT net_AND_THIS>, REMOVE_THIS_mimo AT restoel DOT net_AND_THIS wrote:
>Damian Yerrick schrieb:
>
>> All of Allegro's string-handling (textout(), textprintf(), files, etc.)
>> functions take a char * instead of a const char *. Anyone know why? Do they
>> change the strings in some subtle way? As it stands now, I have to do
>> dangerous casts to get my const char * parameters to work without errors or
>> warnings.
>
>const char * is c++ while allegro is written in c as far as i can see - so you
>should maybe write your own function wrappers:
>
..
The C library was also written in C. Nevertheless functions like printf take a
const char* as their first argument. I guess it would be a good idea to add
the little const to Allegro's functions in future versions.
Or are the strings changed?
--
Manni
- Raw text -