Executando verificação de segurança...
1

Melhor ainda

bool str_has_only_unique_chars(const char *str)
{
    char table[127] = {};

    for (int i = 0; str[i]; i++)
        if (table[str[i]])
            return false;
        else
            table[str[i]]++;

    return true;
}

Carregando publicação patrocinada...