programming - linux - opendir readdir closedirWhat links here?
/*
 * This program displays the names of all files in the current directory.
 */


  1. include <dirent.h>
  2. include <stdio.h>


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

closedir(d); }

return(0); }



FAQ > Accessing a directory and all the files within it
programming - linux - opendir readdir closedir
programming - Libre Calc - cell content types
MC6802 - instruction set - complement memory
programming - windows - directx
programming - C - CLOCKS_PER_SEC
programming - c - functions - atof
programming - windows - win32 functions
programming tools - make files
programming - target - Libre Calc
programming:c:C functions
programming - windows - listbox styles
tk - tk_radiobutton
programming:windows:networking:select based server
programming tools - gcc options
programming - C - ctime
filename:programming - linux - opendir readdir closedir
filename:programming%20%2D%20linux%20%2D%20opendir%20readdir%20closedir
last edit:March 23 2013 14:37:12 (4824 days ago)
ct = 1780878538.000000 = June 07 2026 20:28:58
ft = 1364063832.000000 = March 23 2013 14:37:12
dt = 416814706.000000