delorie.com/archives/browse.cgi | search |
From: | Waldemar Schultz <schultz AT ma DOT tum DOT de> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Is it possible to search subdirectories from the command line.... |
Date: | Thu, 20 Sep 2001 11:31:27 +0200 |
Organization: | [posted via] Leibniz-Rechenzentrum, Muenchen (Germany) |
Lines: | 42 |
Message-ID: | <3BA9B76F.ADB56262@ma.tum.de> |
References: | <3BA9A9F9 DOT 67C8D529 AT iolfree DOT ie> |
NNTP-Posting-Host: | pcritter14.mathematik.tu-muenchen.de |
Mime-Version: | 1.0 |
X-Trace: | wsc10.lrz-muenchen.de 1000978283 20902 131.159.68.151 (20 Sep 2001 09:31:23 GMT) |
X-Complaints-To: | news AT lrz-muenchen DOT de |
NNTP-Posting-Date: | 20 Sep 2001 09:31:23 GMT |
X-Mailer: | Mozilla 4.75 [de] (Win98; U) |
X-Accept-Language: | de,en-US |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
Nino Matassa schrieb: > Is it possible to search subdirectories from the command line such > as...: > > application *.cpp *.h > > which will generate in **argv all my *.cpp & *.h files in that > directory. But what I really > need to do is to search subdirectories too. Do you know if gcc does > that. DJGPP does this by default: try application .../*.cpp .../*.h > If it doesn't do you know if I can access the "wildcard" functionality > from within my application > to allow me to use whatever's there rather than re-write it? info libc alpha glob gives you an example for that. Note: in this case you have to add following function to your application char **__crt0_glob_function(char * s){s=s;return NULL;} /*this is a non-expanding(wildcard preserving) replacement for the function that expands the command line wildcard arguments automagically*/ > On a different subject, do you know of a site I can to which I can > e-mail my application & code > to make it publicly available? simtelnet ? > > Thanks for any help, you are welcome -- Gruss Waldemar Schultz. schultz AT ma DOT tum DOT de Technische Universität München, Zentrum Mathematik M1, D 80290 München Tel: +49 (0)89 2892 8226 FAX: +49 (0)89 2892 8228
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |