From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [204.233.198.50] (helo=linserver.complex) by speech.braille.uwo.ca with esmtp (Exim 3.32 #1 (Debian)) id 16HZ6F-0002xJ-00 for ; Fri, 21 Dec 2001 18:29:11 -0500 Received: (from gnowak1@localhost) by linserver.complex (8.11.4/8.10.2) id fBLNSl100643 for speakup@braille.uwo.ca; Fri, 21 Dec 2001 17:28:47 -0600 Date: Fri, 21 Dec 2001 17:28:47 -0600 From: Gregory Nowak To: speakup@braille.uwo.ca Subject: Re: ot, a programming question Message-ID: <20011221172847.B631@uic.edu> References: <20011221161842.A570@uic.edu> <000701c18a73$b5505f20$56d487d9@essex.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <000701c18a73$b5505f20$56d487d9@essex.ac.uk>; from ss@saqibshaikh.com on Fri, Dec 21, 2001 at 11:03:19PM -0000 Sender: speakup-admin@braille.uwo.ca Errors-To: speakup-admin@braille.uwo.ca X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.0.7 Precedence: bulk Reply-To: speakup@braille.uwo.ca List-Help: List-Post: List-Subscribe: , List-Id: Speakup is a screen review system for Linux. List-Unsubscribe: , List-Archive: Thanks for enlightening me (grin). I've been programmming for almost 4 years now. Anybody know which c++ header file contains this function? Greg On Fri, Dec 21, 2001 at 11:03:19PM -0000, Saqib Shaikh wrote: > Sorry, I've done this under DOS, Win32 and Java, but not under Linux but I'm > sure its the same. > > There's bound to be a function that'll return a list of all files in the > current directory. Then it's simple programming to see which of them fits > the wildcard. Then once you have a list of files to play you just open the > file and do stuff etc. > > If you're really lucky there may be functions under Linux to return a list > of files that match the wildcard but I'n not sure. > > Oh, and I'm assuming you know how to program. In case you don't, every > C/C++ program has a function called main. Main has two parameters - the > number of command line parameters and an array of strings containing the > parameters - this is the operating system's doing. > > Hope this satisfies your curiosity. > > Saqib > ----- Original Message ----- > From: "Gregory Nowak" > To: > Sent: Friday, December 21, 2001 10:18 PM > Subject: ot, a programming question > > > > Hi all, > > > > There is something that's been eating away at my cariousity for the last > few days, and I just had to ask the below. > > Say you run a program such as mpg123 or any other program which > minipulates files, and you pass it *.*, or my?.mp3 to open. How does it > parce that to get a list of files that match *.* or my?.mp3? I tried looking > for mpg123 code that does that, but couldn't find it. > > Could someone please enlighten me, I'm very much interested. Thanks. > > Greg > > > > > > _______________________________________________ > > Speakup mailing list > > Speakup@braille.uwo.ca > > http://speech.braille.uwo.ca/mailman/listinfo/speakup > > > _______________________________________________ > Speakup mailing list > Speakup@braille.uwo.ca > http://speech.braille.uwo.ca/mailman/listinfo/speakup