On 09/07/11 04:55, Reuben Thomas wrote: > For example, from terminfo: > char *tigetstr (char *capname); > So, what's a hacker to do?
If we're talking C, you can put this into your application's system.h file: static inline char * my_tigetstr (char const *capname) { return tigetstr ((char *) capname); } #undef tigetstr #define tigetstr my_tigetstr If we're talking C++, you can play similar games with namespaces, I expect.