Groups | Search | Server Info | Login | Register


Groups > comp.lang.oberon > #715

Re: Using a C function in obnc

From August Karlstrom <fusionfile@gmail.com>
Newsgroups comp.lang.oberon
Subject Re: Using a C function in obnc
Date 2025-08-12 20:00 +0200
Organization A noiseless patient Spider
Message-ID <10dff03b-ec62-43ae-bad2-a3129106702b@gmail.com> (permalink)
References <vpg3vv$luk2$1@dont-email.me>

Show all headers | View raw


On 2025-02-23 22:29, Sidney Reilley wrote:
> Got a C function that I want to use in `obnc'.  I read man 1 obnc and got a
> bit of a clue.  Anybody ever do this in obnc?  If so, how?  TIA ..

Sorry for the late reply. You need to create an Oberon procedure with a 
signature that corresponds to your C function (and has an empty body). 
Then you run OBNC to create the corresponding empty C function in which 
you add a call your C function. Have a look at this blog for an example:

https://rsdoiel.github.io/blog/2020/05/01/Combining-Oberon-and-C.html


/August

Back to comp.lang.oberon | Previous | NextPrevious in thread | Find similar


Thread

Using a C function in obnc Sidney Reilley <sidney.reilley.ii@gmail.com> - 2025-02-23 21:29 +0000
  Re: Using a C function in obnc August Karlstrom <fusionfile@gmail.com> - 2025-08-12 20:00 +0200

csiph-web