🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #34915

Re: Generating vararg slrn intrinsic at run time ... ???

#34915
From: da... John E. Davis
Date: Mon, 07 Jul 1997 00:00
32 lines
1937 bytes

On 7 Jul 1997 15:10:40 GMT, Jan Hlavacek <lah...@math.ohio-state.edu>
wrote:
>get_select_box_response ("Choose one:", strchop (my_string)); ?

Actually, the call should be:

  get_select_box_response ("Choose one:", strchop (my_string, ',', 0));

My previous suggestion about using _stkdepth can be ignored in this
case since strchop returns the number of strings.

Here is the documentation on the strchop function:

Prototype: Integer strchop (String str, Integer delim, Integer quote);
      This routine decomposes a string `str' into a series of substrings 
      and returns the substrings to the stack along with the number of 
      substrings.
      The string `str' is assumed to consist of the substrings delimited 
      by `delim'.  The character `quote' is assumed to quote the delimiter.
      For example,
            strchop ("apples,oranges,pears", ',', 0);
      will return `3' to the top of the stack followed by the three strings:
      `"apples"', `"oranges"', and `"pears"'
      Related Functions: `strchopr', `extract_element'

-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis
Technical Details
Message-ID: <slrn5s25o3.a27.davis@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
References: <slrn5s1ost.u4u.asfast@ljz.asfast.net> <slrn5s21ng.4pi.lahvak+n@math.mps.ohio-state.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5s25o3.a27.davis@aluche.mit.edu>
Subject: Re: Generating vararg slrn intrinsic at run time ... ???
Date: Mon, 07 Jul 1997 00:00:00 +0000
From: da...@space.mit.edu (John E. Davis)
References: <slrn5s1ost.u4u.asfast@ljz.asfast.net> <slrn5s21ng.4pi.lahvak+n@math.mps.ohio-state.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail
X-Deja-AN: 255358541
Organization: Center for Space Research
Reply-To: da...@space.mit.edu
Newsgroups: news.software.readers,alt.lang.s-lang