title: C - How to compare extended char sequence with function strcmp()?
body: <p>I need to compare whether string is equals or not to the following extended char sequence: "———" ( ALT + 0151 code repeated three times) that is in text file. How to do it with function strcmp() ?</p>
  
  <p>A piece of the example text file (TSV):</p>
  
  <p>Piracicaba  Av. Armando Salles de Oliveira  Lado par    13400-005   Centro
  Piracicaba  Tv. Agostinho Frasson   ——— 13400-008   Centro
  Piracicaba  Av. Armando Salles de Oliveira  Lado ímpar  13400-010   Centro</p>
  
  <p>When I read the file and print the field is displayed "ùùù" on monitor.</p>
  
  <p>The structure:</p>
  
  <pre><code>typedef struct {
      char cidade[50];
      char tipoLogradouro[20];
      char logradouro[50];
      char trecho[30];
      char cep[10];
      char bairro[50];
  } Endereco;
  </code></pre>
  
  <p>The test is inside 'switch case' and the program is crashing in this part:</p>
  
  <pre><code>case 3:
        {
            if(strcmp(token, "———") == 0) // Change to "ùùù" and fails too. 
                strcpy(registro[i].trecho, NULL);
            else
                strcpy(registro[i].trecho, token);
            break;
        }
  </code></pre>
  
  <p>Thanks a lot.</p>