# Prolog and c-level memory access with ffi

**URL:** <https://swi-prolog.discourse.group/t/prolog-and-c-level-memory-access-with-ffi/2295>\
**Category:** Help!\
**Created:** [May 8, 2020, 10:55am UTC](https://swi-prolog.discourse.group/t/prolog-and-c-level-memory-access-with-ffi/2295 "2020-05-08T10:55:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grossdan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/grossdan/32/23_2.png) [@grossdan](https://swi-prolog.discourse.group/u/grossdan)\
**Post date:** [May 8, 2020, 10:55am UTC](https://swi-prolog.discourse.group/t/prolog-and-c-level-memory-access-with-ffi/2295/1 "2020-05-08T10:55:54Z")

</div>

Hi Jan,

Do I read this correctly that the ffi package enables a prolog program to create c memory allocations and to program with pointers (including linked lists) using prolog predicates?

> <https://github.com/JanWielemaker/ffi/blob/63b91a242ac8bea8cb13e1e323cde7fd8ae922cc/prolog/ffi.pl>

thanks,

Dan
