For a long time did not touch the C language. From now on, we should begin to brush the subject.
(1)int fscanf( FILE* stream, const char* format, ... );
https://www.programiz.com/cpp-programming/library-function/cstdio/fscanf
(2) strlen (). Header <string.h>
char c[]={'p','r','\0'}
strlen (c) is a 2, '\ 0' will not be included.