12.4.3.4 Wide-character versions
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Foreign Language Interface
        • The Foreign Include File
          • Analysing Terms via the Foreign Interface
            • Wide-character versions
              • PL_new_atom_wchars()
              • PL_atom_wchars()
              • PL_get_wchars()
              • PL_unify_wchars()
              • PL_unify_wchars_diff()
    • Packages
Availability:C-language interface function
pl_wchar_t* PL_atom_wchars(atom_t atom, int *len)
Extract characters from a wide-character atom. Succeeds on any atom marked as `text'. If the underlying atom is a wide-character atom, the returned pointer is a pointer into the atom structure. If it is an ISO-Latin-1 character, the returned pointer comes from Prolog's `buffer ring' (see PL_get_chars()).