int lsdetails(struct stat *astatbuff) {
printf("%d", astatbuff->st_size);
printf("%d", astatbuff->st_atime);
printf("%s\n", getpwuid(astatbuff->st_uid)->pw_name);
return 0;
}
警告: フォーマット '%d' はタイプ 'int' の引数を想定していますが、引数 2 のタイプは '__off_t' [-Wformat]
上記のエラー メッセージが表示されましたが、その理由がわかりません。st_size
と の両方に1 つの引数しか渡していないという印象を受けていますst_atime
。