labwc/scripts/find-banned.sh

7 lines
198 B
Bash
Raw Normal View History

2023-01-30 21:24:52 +00:00
#!/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 -