1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include "captcha.h" #ifdef CONFIG_CAPTCHA int captcha_test1() { int ret = 0; char s[2]; printf("Are you bot?(y/n):\n"); fgets(s,2,stdin); if ( s[0] == 'n' || s[0] == 'N') ret = 1; return ret; } #endif