next up previous
Next: Notes on Using Up: Example of Using Previous: C-Source file (lowercase.c)

Compiling and Loading Foreign Code

sun% cc -I/usr/local/lib/pl/include -O -c lowercase.c
sun% pl
Welcome to SWI-Prolog (version 2.1.3, July 1995)
Copyright (c) 1990-1995, University of Amsterdam. All rights reserved.

1 ?- load_foreign(lowercase, init_lowercase).
foreign file(s) lowercase loaded, 0.016667 seconds, 464 bytes. 

Yes
2 ?- lowercase('Hello World!', L).

L = 'hello world!' 

Yes



Passani Luca
Tue Nov 14 08:58:33 MET 1995