labwc/scripts/find-banned.sh
2023-07-06 18:04:55 +01:00

6 lines
198 B
Bash
Executable file

#!/bin/sh
banned="malloc,g_strcmp0,sprintf,vsprintf,strcpy,strncpy,strcat,strncat"
find src/ include/ \( -name "*.c" -o -name "*.h" \) -type f \
| ./scripts/helper/find-idents --tokens=$banned -