Advertisement
logicmoo

Untitled

Sep 12th, 2014
438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 0.26 KB | None | 0 0
  1. #include<stdio.h>
  2. #include <SWI-Prolog.h>
  3.  
  4.  
  5. foreign_t c_sleep(term_t x) {
  6.   PL_succeed; //this predicate does nothing right now
  7. }
  8.  
  9. install_t install() {
  10.     PL_register_foreign("c_sleep",1,c_sleep,PL_FA_NOTRACE);
  11. }
  12.  
  13. int main() {
  14.     printf("hello world");
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement