Search
 
SCRIPT & CODE EXAMPLE
 

C

how to find folders from a c program

/*
 * This program displays the names of all files in the current directory.
 */

#include <dirent.h> 
#include <stdio.h> 

int main(void) {
  DIR *d;
  struct dirent *dir;
  d = opendir(".");
  if (d) {
    while ((dir = readdir(d)) != NULL) {
      printf("%s
", dir->d_name);
    }
    closedir(d);
  }
  return(0);
}
Comment

PREVIOUS NEXT
Code Example
C :: how to pprint otu a double in in c 
C :: instller acrobat ous ubuntu 
C :: kstrdup 
C :: phpunit assert continue 
C :: Uri/Beecrowd problem no - 1151 solution in C 
C :: abs() for floting point in C 
C :: worst fit program in c 
C :: Print Characters 
C :: false and true in c 
C :: curl ftp upload file to directory 
C :: c pointers to struct 
C :: Uri/beecrowd problem no - 1099 solution in C 
C :: Chef in Vaccination Queue codechef solution in c++ 
C :: google sheets transpose new line to table 
C :: getopt optstr 
C :: allocate a array on strings in c 
C :: c check if character is a punctuation 
C :: print hello world c 
C :: resize vm boot disk with empty space 
C :: QDrag and Drop 
C :: online embedded c compiler 
C :: calculate max of three numbers using ternary operator in c 
C :: recursion c prime number 
Dart :: flutter get width of screen 
Dart :: button shape flutter 
Dart :: dart input field overflow when keyboard open 
Dart :: flutter appbar trailing icon 
Dart :: close keyboard on button click flutter 
Dart :: flutter android x 
Dart :: dart loop through map 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =