exchanging a list of strings between C and MC

emlowe (starnet!apple!fsa.ca!emlowe)
Fri, 31 Mar 1995 16:05:46 -0700 (MST)

Hello everyone!

I'm wondering if anybody has any good ideas on passing a list of
arbitrary strings between MetaCard and a XCMC/XFCN. The strings may
contain any kind of printable character (including linefeed/return) and
maybe of any length, although they will generally be relatively short.

My current technique is to call an XFMD that encodes the list of
strings into a single delimited string that is delimited using a
non-printable character (ASCII 1). The MetaCard script then sets the
itemDelimiter to numToChar(1) and uses the item chunk to get at the
individual items within the delimited string.

I find this to be a rather ugly hack, so if anyone has any better ideas,
I'd love to hear them.

Thanks muchly.

Earle

--
Earle Lowe
emlowe@fsa.cs
FSA Corporation
UNIX system security and administration software