Guest User

Untitled

a guest
May 2nd, 2012
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Reading spaces in C
  2. char *Description;
  3. scanf("%s", Description);
  4. strcpy(word[i].description,Description);
  5.  
  6. fgets(word[i].description, LEN, stdin);
  7.  
  8. scanf("%99[^n]", word[i].description);
  9.  
  10. char Description[2048];
  11. scanf( "%s", Description );
  12.  
  13. char Description[32]; // or whatever size you think is adequate
  14. fgets( Description, sizeof(Description), stdin );
Advertisement
Add Comment
Please, Sign In to add comment