*BSD News Article 8952


Return to BSD News archive

Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.hawaii.edu!ames!agate!doc.ic.ac.uk!uknet!cf-cm!myrddin.isl.cf.ac.uk!paul
From: paul@isl.cf.ac.uk (Paul Richards)
Newsgroups: comp.unix.bsd
Subject: bsd equivalent?
Message-ID: <1992Dec15.220510.24794@cm.cf.ac.uk>
Date: 15 Dec 92 22:05:08 GMT
Sender: news@cm.cf.ac.uk (Network News System)
Organization: Intelligent Systems Lab, ELSYM, Universiity of Wales, College of 
              Cardiff.
Lines: 11

Could someone give me a bsd equivalent to the following sysv code. As a
temp. fix I just used re_comp and re_exec but I'm not sure whether
there's some subleties that I've missed since I don't use sysv systems.

        compile(regex_str, regex_buf, &regex_buf[MAXPATHLEN],'\0');
        step(s, regex_buf);

I'm trying to port guide which is needed by some xview programs. Guide
uses an AT&T proprietary file regexp.h which contains source code for
compile and step, the package (xvnews) seems to work fine when I use
re_comp and re_exec but I may have missed some important difference.