1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* * Rule: ENV30-C * Source: wiki * Status: FAIL - Should trigger ENV30-C violation */ #include <locale.h> void f2(void) { struct lconv *conv = localeconv(); if ('\0' == conv->decimal_point[0]) { conv->decimal_point = "."; } }