www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/22/10:38:18

Date: Sun, 22 Aug 1999 11:58:47 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Klaus Reinhardt <K DOT Rdt AT TU-Berlin DOT DE>
cc: djgpp AT delorie DOT com
Subject: Re: How to expand filenames?
In-Reply-To: <37BCF446.FBF@TU-Berlin.DE>
Message-ID: <Pine.SUN.3.91.990822115334.6405Q-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 19 Aug 1999, Klaus Reinhardt wrote:

> I want to change the ls.c and need a function for file-name-expansion.
> The problem is, that this expansion is done somewhere or before the
> 
> int main (int argc, char **argv) { ..
> 
> And I want to do this here after ( a second special time).
> 
> nm libc.a | grep expand gives
> 	00000690 t _expand_wildcards

expand_wildcards is a static function (thus nm prints `t', not `T') in 
src/libc/crt0/c1args.c, which is part of the DJGPP library source 
distribution, v2/djlsr202.zip on SImTel.NET.  The function is really a 
simple wrapper around another library function, called `glob', which is 
documented in the libc reference (type "info libc alpha glob" from the 
DOS prompt).  This entire code is part of the DJGPP startup code; see 
section 16.1 of the FAQ for details.

Btw, what kind of file-name expansion do you need, and why do you need to 
do it in the `main' function?  I think LS already does everything for 
you, no?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019