I have one problem with my code. I don't know how to make input and output file for my version of "Dir" program. Input file contains directory for search (C:\ATI) for example and output file contains results of program. Here is my code. Thanks!!!!!
The code seems pretty alright but since you use strcpy you really should make find_subdir a null-string after allocating (*find_subdir = 0).
To make an output open a file if there's an argv[2] argument an put your output to that file.
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.