Although usually the compiler should replace strlen(literal) with a built-in, it might not, and it's more predictable to use a constant expression using sizeof() instead to avoid making it a variable length array. This fixes a warning with latest gcc and -Wvla.
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||