Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

I just thought of something funny...your mother. -- Cheech Marin


devel / comp.lang.mumps / Transmit Parameters to C-Program

SubjectAuthor
* Transmit Parameters to C-ProgramJens
`* Re: Transmit Parameters to C-ProgramSam Habiel
 `* Re: Transmit Parameters to C-ProgramJens
  `* Re: Transmit Parameters to C-ProgramK.S. Bhaskar
   `* Re: Transmit Parameters to C-ProgramJens
    +- Re: Transmit Parameters to C-ProgramK.S. Bhaskar
    `* Re: Transmit Parameters to C-ProgramSam Habiel
     `- Re: Transmit Parameters to C-ProgramJens

1
Transmit Parameters to C-Program

<ff8e8d6d-0df6-40ed-b09f-3686b77a9257n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=81&group=comp.lang.mumps#81

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a37:8407:: with SMTP id g7mr15268633qkd.123.1623662360582;
Mon, 14 Jun 2021 02:19:20 -0700 (PDT)
X-Received: by 2002:a4a:2c93:: with SMTP id o141mr12235348ooo.60.1623662360291;
Mon, 14 Jun 2021 02:19:20 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Mon, 14 Jun 2021 02:19:20 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2003:d5:e73e:7d00:ca1:7d1f:4f1:c746;
posting-account=Fb5loAoAAAAWGHFa1kwW5TIlX7XcPFIS
NNTP-Posting-Host: 2003:d5:e73e:7d00:ca1:7d1f:4f1:c746
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ff8e8d6d-0df6-40ed-b09f-3686b77a9257n@googlegroups.com>
Subject: Transmit Parameters to C-Program
From: jewu34@web.de (Jens)
Injection-Date: Mon, 14 Jun 2021 09:19:20 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Jens - Mon, 14 Jun 2021 09:19 UTC

Hi,
I'm experimenting with calls from M to C but my C-experience is very small.

I've done this:
S VAR1="BCB",VAR2="DEF"
D &test.hello(VAR1,VAR2)

test.xc:
/home/aut/test.so
hello: ydb_status_t hello(I:ydb_string_t* ,I:ydb_string_t* )

test.c:
#include <stdio.h>
#include "libyottadb.h"

int hello(int argc, ydb_string_t stringA, ydb_string_t stringB)
{ printf("\nHello\n");
printf("\n");
printf("%s%d", "\nLength 1 ", stringA.length);
printf("%s%d", "\nLength 2 ", stringB.length);
printf("%s%d", "\nArguments ", argc);
printf("%s%s", "\nText 1 ", stringA.address);
printf("%s%s", "\nText 2 ", stringB.address);
return 0;
}

Result:

Hello

Length 1 2073116
Length 2 3
Arguments 2
Text 1
Text 2 BCBDEF

Why is the first length incorrect and the first text not shown?
Can anyone help?
Does anyone have an example with parameter transfer from an to M?
Jens

Re: Transmit Parameters to C-Program

<c9d8d487-a712-430d-8c59-a3975af6548bn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=82&group=comp.lang.mumps#82

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a37:9504:: with SMTP id x4mr8956942qkd.235.1623678739727;
Mon, 14 Jun 2021 06:52:19 -0700 (PDT)
X-Received: by 2002:a05:6808:145:: with SMTP id h5mr19440682oie.24.1623678739552;
Mon, 14 Jun 2021 06:52:19 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Mon, 14 Jun 2021 06:52:19 -0700 (PDT)
In-Reply-To: <ff8e8d6d-0df6-40ed-b09f-3686b77a9257n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=205.201.35.150; posting-account=1RT8nQoAAAAj9lvLkm8f9L-U6g6gYLit
NNTP-Posting-Host: 205.201.35.150
References: <ff8e8d6d-0df6-40ed-b09f-3686b77a9257n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c9d8d487-a712-430d-8c59-a3975af6548bn@googlegroups.com>
Subject: Re: Transmit Parameters to C-Program
From: sam.habiel@gmail.com (Sam Habiel)
Injection-Date: Mon, 14 Jun 2021 13:52:19 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Sam Habiel - Mon, 14 Jun 2021 13:52 UTC

On Monday, June 14, 2021 at 3:19:21 AM UTC-6, Jens wrote:
> Hi,
> I'm experimenting with calls from M to C but my C-experience is very small.
>
> I've done this:
> S VAR1="BCB",VAR2="DEF"
> D &test.hello(VAR1,VAR2)
>
> test.xc:
> /home/aut/test.so
> hello: ydb_status_t hello(I:ydb_string_t* ,I:ydb_string_t* )
>
> test.c:
> #include <stdio.h>
> #include "libyottadb.h"
>
> int hello(int argc, ydb_string_t stringA, ydb_string_t stringB)
> {
> printf("\nHello\n");
> printf("\n");
> printf("%s%d", "\nLength 1 ", stringA.length);
> printf("%s%d", "\nLength 2 ", stringB.length);
> printf("%s%d", "\nArguments ", argc);
> printf("%s%s", "\nText 1 ", stringA.address);
> printf("%s%s", "\nText 2 ", stringB.address);
> return 0;
> }
>
> Result:
>
> Hello
>
>
> Length 1 2073116
> Length 2 3
> Arguments 2
> Text 1
> Text 2 BCBDEF
>
> Why is the first length incorrect and the first text not shown?
> Can anyone help?
> Does anyone have an example with parameter transfer from an to M?
> Jens

Let's start with that your C parameters need to be pointers, but are not. You don't have * in the type name.

Some examples of call-outs:
https://gitlab.com/YottaDB/Util/YDBPosix
https://gitlab.com/YottaDB/Util/YDBZlib

Documentation here: https://docs.yottadb.com/ProgrammersGuide/extrout.html

The Call-out documentation I would admit is not satisfactory. Let me know how it can be improved.

--Sam

Re: Transmit Parameters to C-Program

<dba9d691-a548-4d95-a663-b3d1274e494en@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=83&group=comp.lang.mumps#83

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:622a:652:: with SMTP id a18mr5798017qtb.256.1623741851068;
Tue, 15 Jun 2021 00:24:11 -0700 (PDT)
X-Received: by 2002:a05:6808:138e:: with SMTP id c14mr13706917oiw.55.1623741850789;
Tue, 15 Jun 2021 00:24:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.niel.me!usenet.pasdenom.info!usenet-fr.net!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Tue, 15 Jun 2021 00:24:10 -0700 (PDT)
In-Reply-To: <c9d8d487-a712-430d-8c59-a3975af6548bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:d5:e73e:7d00:5d9c:aec6:d04d:7df9;
posting-account=Fb5loAoAAAAWGHFa1kwW5TIlX7XcPFIS
NNTP-Posting-Host: 2003:d5:e73e:7d00:5d9c:aec6:d04d:7df9
References: <ff8e8d6d-0df6-40ed-b09f-3686b77a9257n@googlegroups.com> <c9d8d487-a712-430d-8c59-a3975af6548bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <dba9d691-a548-4d95-a663-b3d1274e494en@googlegroups.com>
Subject: Re: Transmit Parameters to C-Program
From: jewu34@web.de (Jens)
Injection-Date: Tue, 15 Jun 2021 07:24:11 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Jens - Tue, 15 Jun 2021 07:24 UTC

Sam, Thank you for your hints. The zlib-example helped me much. If there was a link to this C-code in the documentation it would be a help for others too I guess.

Jens

Re: Transmit Parameters to C-Program

<ab4c9f58-b389-4e66-868e-d7fd1bdb6f22n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=84&group=comp.lang.mumps#84

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:6214:764:: with SMTP id f4mr1551567qvz.60.1623870177230;
Wed, 16 Jun 2021 12:02:57 -0700 (PDT)
X-Received: by 2002:a9d:7a55:: with SMTP id z21mr1136447otm.207.1623870176905;
Wed, 16 Jun 2021 12:02:56 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Wed, 16 Jun 2021 12:02:56 -0700 (PDT)
In-Reply-To: <dba9d691-a548-4d95-a663-b3d1274e494en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=108.52.36.105; posting-account=zTPg1AoAAABx_LtAQ3dW6FBnU1dwmSvl
NNTP-Posting-Host: 108.52.36.105
References: <ff8e8d6d-0df6-40ed-b09f-3686b77a9257n@googlegroups.com>
<c9d8d487-a712-430d-8c59-a3975af6548bn@googlegroups.com> <dba9d691-a548-4d95-a663-b3d1274e494en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ab4c9f58-b389-4e66-868e-d7fd1bdb6f22n@googlegroups.com>
Subject: Re: Transmit Parameters to C-Program
From: ksbhaskar@gmail.com (K.S. Bhaskar)
Injection-Date: Wed, 16 Jun 2021 19:02:57 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: K.S. Bhaskar - Wed, 16 Jun 2021 19:02 UTC

On Tuesday, June 15, 2021 at 3:24:11 AM UTC-4, Jens wrote:
> Sam, Thank you for your hints. The zlib-example helped me much. If there was a link to this C-code in the documentation it would be a help for others too I guess.
>
> Jens

Thank you for the suggestion to improve the documentation, Jens. https://gitlab.com/YottaDB/DB/YDBDoc/-/issues/243 has been created to track the suggestion.

Regards
– Bhaskar

Re: Transmit Parameters to C-Program

<82a5ed0d-e8a1-4a29-bee3-c388408f3966n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=85&group=comp.lang.mumps#85

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:620a:2225:: with SMTP id n5mr9481171qkh.38.1624019103079;
Fri, 18 Jun 2021 05:25:03 -0700 (PDT)
X-Received: by 2002:a4a:8749:: with SMTP id a9mr8778402ooi.71.1624019102190;
Fri, 18 Jun 2021 05:25:02 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Fri, 18 Jun 2021 05:25:01 -0700 (PDT)
In-Reply-To: <ab4c9f58-b389-4e66-868e-d7fd1bdb6f22n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:d5:e73e:7d00:8c65:4f11:46f9:5173;
posting-account=Fb5loAoAAAAWGHFa1kwW5TIlX7XcPFIS
NNTP-Posting-Host: 2003:d5:e73e:7d00:8c65:4f11:46f9:5173
References: <ff8e8d6d-0df6-40ed-b09f-3686b77a9257n@googlegroups.com>
<c9d8d487-a712-430d-8c59-a3975af6548bn@googlegroups.com> <dba9d691-a548-4d95-a663-b3d1274e494en@googlegroups.com>
<ab4c9f58-b389-4e66-868e-d7fd1bdb6f22n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <82a5ed0d-e8a1-4a29-bee3-c388408f3966n@googlegroups.com>
Subject: Re: Transmit Parameters to C-Program
From: jewu34@web.de (Jens)
Injection-Date: Fri, 18 Jun 2021 12:25:03 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Jens - Fri, 18 Jun 2021 12:25 UTC

One extended question to this topic:
If I call the C-subroutine like this:

D &test.hello(VAR1,.VAR2)

int hello(int argc, ydb_string_t stringA, ydb_string_t stringB)

Is it possible to send back an array to VAR2?

I know about ydb_set_s(), but the C-program doesn't know the name "VAR2" to add nodes to it.

Jens

Re: Transmit Parameters to C-Program

<7ec0edec-abf8-4314-9f0c-797a04f09b4fn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=86&group=comp.lang.mumps#86

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:ac8:7f14:: with SMTP id f20mr10245325qtk.166.1624024476579; Fri, 18 Jun 2021 06:54:36 -0700 (PDT)
X-Received: by 2002:a9d:ec1:: with SMTP id 59mr9500965otj.208.1624024476279; Fri, 18 Jun 2021 06:54:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Fri, 18 Jun 2021 06:54:36 -0700 (PDT)
In-Reply-To: <82a5ed0d-e8a1-4a29-bee3-c388408f3966n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=108.52.36.105; posting-account=zTPg1AoAAABx_LtAQ3dW6FBnU1dwmSvl
NNTP-Posting-Host: 108.52.36.105
References: <ff8e8d6d-0df6-40ed-b09f-3686b77a9257n@googlegroups.com> <c9d8d487-a712-430d-8c59-a3975af6548bn@googlegroups.com> <dba9d691-a548-4d95-a663-b3d1274e494en@googlegroups.com> <ab4c9f58-b389-4e66-868e-d7fd1bdb6f22n@googlegroups.com> <82a5ed0d-e8a1-4a29-bee3-c388408f3966n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7ec0edec-abf8-4314-9f0c-797a04f09b4fn@googlegroups.com>
Subject: Re: Transmit Parameters to C-Program
From: ksbhaskar@gmail.com (K.S. Bhaskar)
Injection-Date: Fri, 18 Jun 2021 13:54:36 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 17
 by: K.S. Bhaskar - Fri, 18 Jun 2021 13:54 UTC

On Friday, June 18, 2021 at 8:25:03 AM UTC-4, Jens wrote:
> One extended question to this topic:
> If I call the C-subroutine like this:
>
> D &test.hello(VAR1,.VAR2)
> int hello(int argc, ydb_string_t stringA, ydb_string_t stringB)
> Is it possible to send back an array to VAR2?
>
> I know about ydb_set_s(), but the C-program doesn't know the name "VAR2" to add nodes to it.
>
> Jens

Jens, can you pass the name of the variable in VAR2? By receiving the variable name in stringB, the C code can then populate the variable.

Regards
– Bhaskar

Re: Transmit Parameters to C-Program

<f2fd27f2-95c6-42dd-aa98-a1bd13b1a762n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=88&group=comp.lang.mumps#88

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:622a:14cc:: with SMTP id u12mr1402290qtx.214.1624027753686;
Fri, 18 Jun 2021 07:49:13 -0700 (PDT)
X-Received: by 2002:a05:6830:411f:: with SMTP id w31mr9836166ott.21.1624027753100;
Fri, 18 Jun 2021 07:49:13 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Fri, 18 Jun 2021 07:49:12 -0700 (PDT)
In-Reply-To: <82a5ed0d-e8a1-4a29-bee3-c388408f3966n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.162.243.192; posting-account=1RT8nQoAAAAj9lvLkm8f9L-U6g6gYLit
NNTP-Posting-Host: 71.162.243.192
References: <ff8e8d6d-0df6-40ed-b09f-3686b77a9257n@googlegroups.com>
<c9d8d487-a712-430d-8c59-a3975af6548bn@googlegroups.com> <dba9d691-a548-4d95-a663-b3d1274e494en@googlegroups.com>
<ab4c9f58-b389-4e66-868e-d7fd1bdb6f22n@googlegroups.com> <82a5ed0d-e8a1-4a29-bee3-c388408f3966n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f2fd27f2-95c6-42dd-aa98-a1bd13b1a762n@googlegroups.com>
Subject: Re: Transmit Parameters to C-Program
From: sam.habiel@gmail.com (Sam Habiel)
Injection-Date: Fri, 18 Jun 2021 14:49:13 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Sam Habiel - Fri, 18 Jun 2021 14:49 UTC

On Friday, June 18, 2021 at 6:25:03 AM UTC-6, Jens wrote:
> One extended question to this topic:
> If I call the C-subroutine like this:
>
> D &test.hello(VAR1,.VAR2)
> int hello(int argc, ydb_string_t stringA, ydb_string_t stringB)
> Is it possible to send back an array to VAR2?
>
> I know about ydb_set_s(), but the C-program doesn't know the name "VAR2" to add nodes to it.
>
> Jens
Jens,

I don't think that's possible. Back when I wrote this: https://github.com/shabiel/fis-gtm-plugins/blob/master/libcurl/libcurl_ydb_wrapper.c, I wish I could do that for GT.M code, but I couldn't; and I ran up against the limit for strings.

If you can't provide a delimited output that can be parsed back by M into an array, you will have to use ydb_set_s. It is somewhat difficult to use. You can send out the variable you would like to set in stringB, and use it.

I wrote this recently for my job: https://gitlab.com/shabiel/YDBAIM/-/blob/ydbaim-c-api/ydbaim.c#L109

You can read there exactly how to do what you want.

--Sam

Re: Transmit Parameters to C-Program

<1fd7e024-0400-45c7-b033-90cda45429e0n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=89&group=comp.lang.mumps#89

  copy link   Newsgroups: comp.lang.mumps
X-Received: by 2002:a05:620a:1026:: with SMTP id a6mr9833866qkk.331.1624033457572;
Fri, 18 Jun 2021 09:24:17 -0700 (PDT)
X-Received: by 2002:a05:6830:2e3:: with SMTP id r3mr3535500ote.229.1624033457316;
Fri, 18 Jun 2021 09:24:17 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.mumps
Date: Fri, 18 Jun 2021 09:24:17 -0700 (PDT)
In-Reply-To: <f2fd27f2-95c6-42dd-aa98-a1bd13b1a762n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2003:d5:e73e:7d00:8c65:4f11:46f9:5173;
posting-account=Fb5loAoAAAAWGHFa1kwW5TIlX7XcPFIS
NNTP-Posting-Host: 2003:d5:e73e:7d00:8c65:4f11:46f9:5173
References: <ff8e8d6d-0df6-40ed-b09f-3686b77a9257n@googlegroups.com>
<c9d8d487-a712-430d-8c59-a3975af6548bn@googlegroups.com> <dba9d691-a548-4d95-a663-b3d1274e494en@googlegroups.com>
<ab4c9f58-b389-4e66-868e-d7fd1bdb6f22n@googlegroups.com> <82a5ed0d-e8a1-4a29-bee3-c388408f3966n@googlegroups.com>
<f2fd27f2-95c6-42dd-aa98-a1bd13b1a762n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1fd7e024-0400-45c7-b033-90cda45429e0n@googlegroups.com>
Subject: Re: Transmit Parameters to C-Program
From: jewu34@web.de (Jens)
Injection-Date: Fri, 18 Jun 2021 16:24:17 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Jens - Fri, 18 Jun 2021 16:24 UTC

Sam Habiel schrieb am Freitag, 18. Juni 2021 um 16:49:14 UTC+2:
> On Friday, June 18, 2021 at 6:25:03 AM UTC-6, Jens wrote:
> > One extended question to this topic:
> > If I call the C-subroutine like this:
> >
> > D &test.hello(VAR1,.VAR2)
> > int hello(int argc, ydb_string_t stringA, ydb_string_t stringB)
> > Is it possible to send back an array to VAR2?
> >
> > I know about ydb_set_s(), but the C-program doesn't know the name "VAR2" to add nodes to it.
> >
> > Jens
> Jens,
>
> I don't think that's possible. Back when I wrote this: https://github.com/shabiel/fis-gtm-plugins/blob/master/libcurl/libcurl_ydb_wrapper.c, I wish I could do that for GT.M code, but I couldn't; and I ran up against the limit for strings.
>
> If you can't provide a delimited output that can be parsed back by M into an array, you will have to use ydb_set_s. It is somewhat difficult to use. You can send out the variable you would like to set in stringB, and use it.
>
> I wrote this recently for my job: https://gitlab.com/shabiel/YDBAIM/-/blob/ydbaim-c-api/ydbaim.c#L109
>
> You can read there exactly how to do what you want.
>
> --Sam

Hi Bhaskar, hi Sam,

thank you for your quick replies. I was thinking about transferring the variable-name as string too, but it 'felt wrong'.
I'll try it this way now.

Have a nice weekend!

Jens

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor