Subject: Re: Bug in regex library?
To: der Mouse <mouse@Holo.Rodents.Montreal.QC.CA>
From: Greg A. Woods <woods@kuma.web.net>
List: current-users
Date: 11/03/1996 18:15:21
[ On Tue, October 29, 1996 at 15:23:11 (-0500), der Mouse wrote: ]
> Subject: Re: Bug in regex library?
>
> 	printf(BIG_D " " BIG_D "\n", (signed_big)pm[0].rm_so, (signed_big)pm[0].rm_eo);
> 
> This is somewhat ugly, but given the current state of C (and nearly-C)
> compilers, it's about the best I can see.

This is a big help, but it's still not fully portable to those compilers
that cannot automatically concatenate adjacent strings.  A pedantic
point, I admit, but isn't that what this is all about?  ;-)

As an alternative I can't at the moment think of anything more elegant
than this:

	sprintf(fmt, "%s %s\n", BIG_D, BIG_D);
	printf(fmt, (signed_big)pm[0].rm_so, (signed_big)pm[0].rm_eo);

-- 
							Greg A. Woods

+1 416 443-1734			VE3TCP			robohack!woods
Planix, Inc. <woods@planix.com>; Secrets Of The Weird <woods@weird.com>