delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/05/12:48:47

From: mauch AT uni-duisburg DOT de (Michael Mauch)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP regex - how does it work?
Date: Fri, 05 Sep 1997 17:13:57 +0200
Organization: Home, sweet home (via Gesamthochschule Duisburg)
Lines: 17
Message-ID: <34110e06.25539771@news.uni-duisburg.de>
References: <5und1g$l9o$2 AT news-hrz DOT uni-duisburg DOT de>
NNTP-Posting-Host: ppp61.uni-duisburg.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Fri, 05 Sep 1997 00:34:28 +0200, mauch AT uni-duisburg DOT de (Michael
Mauch) wrote:

> I tried to use the functions regcomp() and regexec() from DJGPP's
> regex.h, but obviously I'm plain too dumb to get these things to work.

I obviously _was_ too dumb to see that I should have used

  r = regexec(&regex,strRegex,1,pMatch,eFlags | REG_TRACE);
                       ^^^
strString here instead of strRegex. Embarassing.

Thanks to Dave Pearson who answered by mail and sent me a working
example source, without which I would not have found my bug.

Regards...
		Michael

- Raw text -


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