🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #11535

Error in ARP Programmer's Manual

#11535
From: Mark Rinfret
Date: Sat, 18 Feb 1989 15:02
39 lines
2181 bytes
I've just uncovered a documentation error in the ARP version 34 Programmer's
Manual (actually, the page header says "PreParse(33.4)" but the library is
version 34).  Under the section heading "INPUTS", parameter "dest" is
described as follows:

dest - pointer to buffer to place the parsed string in.  The
	length of the resulting string will not be larger
	than the source string.

The second sentence is not true, though, in typical sucker fashion, I
believed it and used a calloc() call to allocate the destination buffer, 
using the length of the original string +1 for the size parameter.  A sample
pattern that fails follows:

	"#?.o" yields "\x89\x02\x81\x8a\x02.o" (4 => 7)

The tokens x89 and x8a are begin/end repeat.
Token x81 is a "single wild character" (?).
The first x02 is, I assume, a repeat count.  I don't know what the
second one represents (trailing character count?).  


/kim, I inferred from some of your previous postings that you were in 
contact with the ARP group.  Would you please forward this to them? Thanks.

Mark

-- 
{ Mark R. Rinfret            mrr@amanpt1.Newport.RI.US                       }
{ HyperView Systems Corp.    Hypermedia Solutions for Documentation/Training }
{ 28 Jacome Way              Work: 401-849-9390 x301                         }
{ Middletown, RI 02840       Home: 401-846-7639                              }

-- 
{ Mark R. Rinfret            mrr@amanpt1.Newport.RI.US                       }
{ HyperView Systems Corp.    Hypermedia Solutions for Documentation/Training }
{ 28 Jacome Way              Work: 401-849-9390 x301                         }
{ Middletown, RI 02840       Home: 401-846-7639                              }
Technical Details
Message-ID: <558@amanpt1.amanpt1.Newport.RI.US>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!voder!pyramid!prls!philabs!linus!raybed2!rayssd!galaxia!amanpt1!mrr

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!voder!pyramid!prls!philabs!linus!raybed2!rayssd!galaxia!amanpt1!mrr
From: mrr@amanpt1.amanpt1.Newport.RI.US (Mark Rinfret)
Newsgroups: comp.sys.amiga.tech
Subject: Error in ARP Programmer's Manual
Keywords: ARP,PreParse,error,bug
Message-ID: <558@amanpt1.amanpt1.Newport.RI.US>
Date: 18 Feb 89 15:02:30 GMT
Organization: HyperView Systems
Lines: 39