Using scanf with the %s conversion specifier will stop scanning at the first whitespace character; for example, if your input stream looks like. "This is a test". then scanf("%55s", str_buf) will read and assign "This" to str_buf. Note that the field with specifier doesn't make a difference in this case. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.