sqc 0.4.13

Software Code Quality - CERT C compliance checker
1
2
3
4
5
6
7
8
9
/*
 * Rule: ENV03-C
 * Source: wiki
 * Status: FAIL - Should trigger ENV03-C violation
 */

if (system("/bin/ls dir.`date +%Y%m%d`") == -1) {
  /* Handle error */
}