ino_t タイプのプレースホルダーは何ですか? printf を使用して印刷しようとしており、%d、%i、%s などを試しましたが、機能しません。
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 番号は示していません。私もいろいろなところを探しました。
前もって感謝します