Function: char-to-string

char-to-string is a function defined in editfns.c.

Signature

(char-to-string CHAR)

Documentation

Convert arg CHAR to a string containing that character.

Probably introduced at or before Emacs version 20.1.

Aliases

org-char-to-string (obsolete since 9.0)

Source Code

// Defined in /usr/src/emacs/src/editfns.c
{
  int c, len;
  unsigned char str[MAX_MULTIBYTE_LENGTH];

  CHECK_CHARACTER (character);
  c = XFIXNAT (character);

  len = CHAR_STRING (c, str);
  return make_string_from_bytes ((char *) str, 1, len);
}