|Did you know ...||Search Documentation:|
|Exchanging text using length and string|
All internal text representation in SWI-Prolog is represented using
char * plus length and allow for 0-bytes in them.
The foreign library supports this by implementing a *_nchars() function
for each applicable *_chars() function. Below we briefly present the
signatures of these functions. For full documentation consult the
In addition, the following functions are available for creating and inspecting atoms:
(size_t)-1, it is computed from s using strlen(). See PL_new_atom() for error handling.