This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
C-string length at compile time
- From: Sebastian Huber <sebastian-huber at web dot de>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Fri, 30 Aug 2002 21:17:55 -0700
- Subject: C-string length at compile time
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