Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include <SWI-Prolog.h>
- foreign_t c_sleep(term_t x) {
- PL_succeed; //this predicate does nothing right now
- }
- install_t install() {
- PL_register_foreign("c_sleep",1,c_sleep,PL_FA_NOTRACE);
- }
- int main() {
- printf("hello world");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement