C-string length at compile time

Sebastian Huber sebastian-huber@web.de
Fri Aug 30 12:17:00 GMT 2002


Hallo,
is it possible to get the length of a C-string at compile time? I have various
#define CSTRING "blabla"
in combination with 'strlen( CSTRING)'. Or is maybe strlen() evaluated from 
the compiler if I switch the optimization on?

Ciao



More information about the Gcc-help mailing list