表示一个ptrdiff_t值,应该用%td,不然会有警告:Format specifies type 'int' but the argument has type 'ptrdiff_t' (aka 'long') (fix available)clang(-Wformat)
C 语言入门教程。