Simple wildcard string comparison for C