Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<sys/stat.h>
- #include<dirent.h>
- int main(int argc, char *argv[])
- {
- DIR *dp;
- struct dirent *sd;
- dp = opendir(argv[1]);
- while ((sd = readdir(dp)) != NULL) {
- printf("%sn", sd->d_name);
- }
- closedir(dp);
- }
- struct myStructure {
- int number;
- char name[10];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement