Read and respond to this message at:
Your program is not complete and compilable so I can't try it to see if what
you say is true, but I can probably guess because I made the same mistake when
I tried to run it. If you are attempting to pass a wildcard like "*.*" as a
command line argument to your program, it won't actually do what you expect
because the C library startup code expands the wildcard to all the matches and
argv will then be the name of the first file, which will cause Find to return
just that file.
You can test this by calling your function with a hardcoded string "*.*" instead
of argv. If you really want to prevent this automatic wildcard expansion
you can add the object CRT_noglob.o to your link command line, e.g.:
gcc -o findexample.exe findexample.c c:/mingw/lib/CRT_noglob.o
(I assume you are not using a good shell like bash because that would be another
cause for automatic wildcard expansion)
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: