| ||||||
| int rpmatch | (const char *yanıt) |
...
/* Öntanımlı bir değerimiz olsun. */
_Bool doit = false;
fputs (gettext ("Do you really want to do this? "), stdout);
fflush (stdout);
/* getline çağrısını hazırlayalım. */
line = NULL;
len = 0;
while (getline (&line, &len, stdout) >= 0)
{
/* Yanıta bakalım. */
int res = rpmatch (line);
if (res >= 0)
{
/* Yanıt olumluysa. */
if (res > 0)
doit = true;
break;
}
}
/* Yanıtı aldığımız diziyi serbest bırakalım. */
free (line);
| |||||||||