stat function returns stat for the file pointing at path (“/lib”)

前端 未结 0 1729
心在旅途
心在旅途 2020-11-30 02:08
int main(int argc, char **argv) {

  struct stat st;
  stat("/lib", &st);
  switch (st.st_mode & S_IFMT) {
    case S_IFDIR:
      printf("dir         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题