We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3c7705 commit b2f1ec8Copy full SHA for b2f1ec8
1 file changed
test/cfg/std.c
@@ -3519,6 +3519,13 @@ void invalidFunctionArg_strchr(const char *cs, int c)
3519
(void)strchr(cs, 256);
3520
}
3521
3522
+void constParameterPointer_strchr(char *str) // #14453
3523
+{
3524
+ char *sep = strchr(str, ':');
3525
+ if (sep)
3526
+ *sep = '\0';
3527
+}
3528
+
3529
void invalidFunctionArg_log10(float f, double d, const long double ld)
3530
{
3531
// cppcheck-suppress invalidFunctionArg
0 commit comments