GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  LIBOWFAT_FMT_UTF8 (3)

NAME

fmt_utf8 - encode 31-bit unsigned integer using UTF-8 rules

CONTENTS

Syntax
Description

SYNTAX

#include <fmt.h>

size_t fmt_utf8(char *dest,uint32_t source);

DESCRIPTION

fmt_utf8 encodes a 31-bit unsigned integer using the UTF-8 rules. This can take from 1 byte (0-0x7f) up to 5 bytes (0x4000000-0x7fffffff). Values larger than 0x7fffffff cannot be represented in this encoding.

If dest equals FMT_LEN (i.e. is NULL), fmt_utf8 returns the number of bytes it would have written.

For convenience, fmt.h defines the integer FMT_UTF8 to be big enough to contain every possible fmt_utf8 output.

SEE ALSO

scan_utf8(3)
Search for    or go to Top of page |  Section 3 |  Main Index


FMT_UTF8 (3) -->

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.