누구나 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