Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib. h>
  3. #include <string.h>
  4. #include <locale.h>
  5. #include <time.h>
  6. #include <dirent.h>
  7.  
  8. busca_pdfs([15]*char pdfs) {
  9.     DIR *d;
  10.     int i;
  11.     struct dirent *dir;
  12.     d = opendir(".");
  13.     if (d) {
  14.       while ((dir = readdir(d)) != NULL) {
  15.         strcpy( dir->d_name);
  16.       }
  17.       closedir(d);
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement