title: scanf problem in input
body: <p>hi I am having problems using scanf when reading two strings with spaces consecutively </p>
  
  <pre><code>char name[50] = {0};
  char address[100] = {0};
  char name1[50] = {0};
  char address1[100] = {0};
  int size = 0;
  //input = fopen("/dev/tty","r+");
  //output = fopen("/dev/tty","w");
  printf("\nenter the name:");
  scanf("%[^\n]s",name);
  //fgets(name,sizeof(name),input); // this works fine
  printf("\nenter the address:");
  scanf("%[^\n]s",address);
  //fgets(address,sizeof(address),input); // this works fine
  </code></pre>
  
  <p>the input for address is not taken at all.. maybe it takes the return key as an input?</p>