任何人都知道ino_t類型的佔位符是什麼? 我試圖用printf將它打印出來,並嘗試使用%d,%i,%s和其他但不工作。ino_t的佔位符
printf(" file name = %s, i-node number=**%d**\n", direntp->d_name, direntp->d_ino);
warning: format ‘%i’ expects argument of type ‘int’, but argument 3 has type ‘__ino_t’ [-Wformat]
假設我的其他代碼是正確的。 大多數示例僅顯示如何打印名稱,但不顯示inode編號。 我也搜遍了很多地方。
在此先感謝
http://stackoverflow.com/questions/18534336/does-posix-supply-format-string-macros-for-printf-scanf – szx