Did you know ...
Search Documentation:
Term Comparison
HOME
DOWNLOAD
SWI-Prolog
Sources/building
Docker images
Add-ons
Browse GIT
DOCUMENTATION
Manual
Packages
FAQ
Command line
PlDoc
Bluffers
▶
Prolog syntax
PceEmacs
HTML generation
License
Publications
Rev 7 Extensions
TUTORIALS
Beginner
▶
Getting started
Learn Prolog Now!
Simply Logical
Debugger
Development tools
Advanced
▶
Modules
Grammars (DCGs)
clp(fd)
Printing messages
PlDoc
Web applications
▶
Web applications
Let's Encrypt!
Pengines
Semantic web
▶
ClioPatria
RDF namespaces
Graphics
▶
XPCE
GUI options
Machine learning
▶
Probabilistic Logic Programming
External collections
▶
Meta level tutorials
For packagers
▶
Linux packages
COMMUNITY
IRC
Forum & mailing list
Blog
News
Report a bug
Submit a patch
Submit an add-on
Roadmap (on GitHub)
External links
Contributing
Code of Conduct
Contributors
SWI-Prolog items
USERS
Semantic web
Students
Researchers
Commercial users
Dog food
Is SWIPL right for me?
WIKI
Login
View changes
Sandbox
Wiki help
All tags
Documentation
Reference manual
Foreign Language Interface
The Foreign Include File
Miscellaneous
Term Comparison
PL_compare()
PL_same_compound()
Recorded database
Database
Getting file names
Dealing with Prolog flags from C
Packages
12.4.17.1
Term Comparison
int
PL_compare
(
term_t t1, term_t t2
)
Compares two terms using the standard order of terms and returns -1, 0 or 1. See also
compare/3
.
int
PL_same_compound
(
term_t t1, term_t t2
)
Yields
TRUE
if
t1
and
t2
refer to physically the same compound term and
FALSE
otherwise.