Unformatted text preview: %s only reads up to a whitespace! Will discard everything afterwards % o ^ prefaces the list of inadmissible characters o contain the admissible and/or inadmissible characters o Ignores leading whitespace %10[^\n] will only accept until 10, and then reads until new line. COUNTS WHITESPACE IN THE FIRST 10!!! EOF line at the end of a file While (fscanf(fp, “%60[^\n]%*c != EOF) Fprintf is formatted Puts() is Unformatted if successful, will always return a non-negative value Printf(“%d”, puts(name)); if successful, will return a non-negative number Putting inside the printf the return value of a function can help with debugging...
View Full Document
- Fall '10