Passing an Integer to a Foreign Function
     Prolog:  +integer
     C:       long int x
     Pascal:  x: integer
     FORTRAN: integer x
     

The argument must be instantiated to an integer, otherwise the call will raise an exception. The Prolog integer is converted to a long integer and passed to the foreign function.