john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

dirlist

/* John Pfeiffer 26may08 list of directories and files in a directory */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>


int main(int argc, char* argv[])
{
    char buffer[256];

    strcat(buffer,"dir /ad /b | dirnames.c.exe");
    puts(buffer);
    system(buffer);

    return 0;

}/* end main */

  • « dirnamesV1 iterative
  • file tabs to 4 spaces »

Published

May 26, 2008

Category

c

~34 words

Tags

  • c 95
  • dirlist 2