The fscanf function is part of the C standard library formatted input utilities. Multiple functions are provided for different input sources like scanf to read from stdin , sscanf to read from the character string, and fscanf to read from the FILE pointer stream. The latter can be used to read the regular file line by line and store them in the buffer. A sequence of characters representing a pointer. Any number of the characters specified between the brackets.
A dash - that is not the first character may produce non-portable behavior in some library implementations. No input is consumed. The number of characters read so far from stream is stored in the pointed location. Learn to implement data structures like Heap, Stacks, Linked List and many more! Check out our Data Structures in C course to start learning today. Recommended Articles. Article Contributed By :. Easy Normal Medium Hard Expert.
Writing code in comment? Please use ide. Load Comments. What's New. Most popular in C Language. More related articles in C Language.
0コメント