[comp.sys.amiga.tech] Error in ARP Programmer's Manual

mrr@amanpt1.amanpt1.Newport.RI.US (Mark Rinfret) (02/18/89)

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                              }