#include <stdio.h>
#include <string.h>
#include <strings.h>
int main(void) {
char lugar[20]; //cria o array de caracteres para armazenar o texto
printf("Digite o nome de um lugar: "); scanf("%20s", lugar
); //não precisa da referência porque o array já é uma, precisa %s if (strcasecmp(lugar, "Escola") == 0) { //use a função para comparar todos os caracteres
}
}
//http://pt.stackoverflow.com/q/193348/101
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KI2luY2x1ZGUgPHN0cmluZ3MuaD4KCmludCBtYWluKHZvaWQpIHsKICAgIGNoYXIgbHVnYXJbMjBdOyAvL2NyaWEgbyBhcnJheSBkZSBjYXJhY3RlcmVzIHBhcmEgYXJtYXplbmFyIG8gdGV4dG8KICAgIHByaW50ZigiRGlnaXRlIG8gbm9tZSBkZSB1bSBsdWdhcjogIik7CiAgICBzY2FuZigiJTIwcyIsIGx1Z2FyKTsgLy9uw6NvIHByZWNpc2EgZGEgcmVmZXLDqm5jaWEgcG9ycXVlIG8gYXJyYXkgasOhIMOpIHVtYSwgcHJlY2lzYSAlcwogICAgaWYgKHN0cmNhc2VjbXAobHVnYXIsICJFc2NvbGEiKSA9PSAwKSB7IC8vdXNlIGEgZnVuw6fDo28gcGFyYSBjb21wYXJhciB0b2RvcyBvcyBjYXJhY3RlcmVzCiAgICAgICAgcHJpbnRmKCJcbkVzdHVkYXIiKTsKICAgIH0KfQoKLy9odHRwOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8xOTMzNDgvMTAx