title: Read char with sscanf
body: <p>im trying to load a struct from a file register. When i try to scan a char i get a whitespace. The file register has this format:</p>
  
  <p>accountNumber(char 8) code(char 1) balance(float 9 digits 2decimals)</p>
  
  <p>Example :  </p>
  
  <p>AAAA1111 C 500000,05</p>
  
  <p>When i try to get that example register i get:</p>
  
  <p>AAAA1111 500000,05</p>
  
  <pre><code>typedef struct{
      char accountNum[8];
      char cod;
      float balance;
  }t_regMov;
  
  void loadStruct(char *line,t_regMov *mov){
      char *aux=line;
      aux=strchr(line,'\n');
      *aux='\0';
      aux-=9;
      sscanf(aux,"%f",&amp;mov-&gt;balance);
      aux-=1;
      *aux='\0';
      aux-=1;
      sscanf(aux,"%c",&amp;mov-&gt;cod);
      aux-=1;
      *aux='\0';
      sscanf(line,"%s",mov-&gt;accountNum);
  }
  
  int main(){
      FILE *movf=fopen("movements.txt","r+");
      if(!movf)exit(1);
      t_regMov mov;
      char line[100];
  
      fgets(line,sizeof(line),movf);
      while(!feof(movf)){
          loadStruct(line,&amp;mov);
          printf("%s %c %f\n",mov.accountNum,mov.cod,mov.balance)
          fgets(line,sizeof(line),movf);
      }
      fclose(movf);
  }
  </code></pre>