Scan catalog Files

Source: Internet
Author: User

These days in the Win32 game to the Android platform, you need to enter a lot of CPP files, manual copy is slow and error prone, others to the scanning program is written in Java, do not want to use, so they realized a. Spent more time, the key is that the Unix interface is not very familiar with or do not know that there is this thing, and began to think of their own realization completely,. 2 ... ignorant fearless! So the UNIX environment advanced programming to turn over, to get it done. Have time to upload the source to GitHub.

Api:sys/stat.h:int stat (const char *restrictpathname,struct stat *restrict buf); int fstat (int fields,struct stat *buf); int Lstat (const char *restrictpathname,struct stat *restrict buf);d irent.h:static DIR *opendir (const char *dirname); stat IC struct dirent *readdir (DIR *dirp); Returns the next directory entry point for the Dir directory stream, otherwise returns null;static int Closedir (dir *dirp);



Scan catalog Files

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.