Perl 6 uses "NativeCall" to call out to native library functions. I
would start with

https://docs.perl6.org/language/nativecall

and come back with specific questions.

On Wed, Mar 8, 2017 at 5:51 AM, ToddAndMargo <toddandma...@zoho.com> wrote:
> Hi All,
>
> In Linux, how do I call system functions from Perl 6?
>
> int XStoreBytes(Display *display, char *bytes, int nbytes);
>
> And what is that?  "C"?
>
> Is there an inline "C" call?
>
> Many thanks,
> -T
>
>
> man XStoreBuffer
>
> NAME
>        XStoreBytes, XStoreBuffer, XFetchBytes, XFetchBuffer,
>        XRotateBuffers -  manipulate cut and paste buffers
>
> SYNTAX
>        int XStoreBytes(Display *display, char *bytes, int nbytes);
>
>        int XStoreBuffer(Display *display, char *bytes, int nbytes, int buf‐
>               fer);
>
>        char *XFetchBytes(Display *display, int *nbytes_return);
>
>        char *XFetchBuffer(Display *display, int *nbytes_return, int buffer);
>
>        int XRotateBuffers(Display *display, int rotate);
>
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Computers are like air conditioners.
> They malfunction when you open windows
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



-- 
Will "Coke" Coleda

Reply via email to