...
In this compliant solution, the integer literal is replaced with an enumeration constant (see DCL00-AC. Const-qualify immutable objects).
Code Block | ||
---|---|---|
| ||
enum { BUFFER_SIZE=256 }; char buffer[BUFFER_SIZE]; /* ... */ fgets(buffer, BUFFER_SIZE, stdin); |
...