stringprep_unichar_to_utf8(3)

stringprep_unichar_to_utf83

Api function

Usage

#include <stringprep.h>

int stringprep_unichar_to_utf8(uint32_t c, char * outbuf);

Arguments

uint32_t c

a ISO10646 character code

char * outbuf

output buffer, must have at least 6 bytes of space. If NULL, the length will be computed and returned and nothing will be written to outbuf .

Overview

Converts a single character to UTF-8.

Return value: number of bytes written.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 8 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. 9–11
  7. 12
  8. 13
  9. Arch

Reporting bugs

Report bugs to <[email protected]>.
General guidelines for reporting bugs: https://www.gnu.org/gethelp/
GNU Libidn home page: https://www.gnu.org/software/libidn/

From libidn 1.44-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.