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  -  FPUTU8 (3)

NAME

fputu8 - utf-8 library function manual page

CONTENTS

Synopsis
Description
Return Values
See Also
Standards
Diagnostics
Authors
Bugs

SYNOPSIS


.Fd #include <utf-8.h> int fputu8 unsigned int c FILE *output int utf8fputc unsigned int c FILE *output int utf8putc unsigned int c FILE *output int utf8putchar unsigned int c

DESCRIPTION

The fputu8 function of utf-8 library converts a UTC-4 (31-bit Unicode) integer to one or more bytes representing its UTF-8 value, and writes the result to a file.

utf8fputc and utf8putc are macros which simply give fputu8 a name that may be more convenient to remember. They are defined in <utf-8.h>.

The fputu8 function and the macros take two arguments: c, the UTC-4 code, and input, which can be any open file.

The utf8putchar macro sends output to stdout.

RETURN VALUES

fputu8 returns 0 on success; EOF if output is NULL or cannot be written to; 1 if c is not a valid UTC-4 code (i.e., its high bit is set).

SEE ALSO

libutf-8(3), fgetu8(3), sgetu8(3), sputu8(3)
.Rs UTF-8, a transformation format of Unicode and ISO 10646
.Re
.Rs Using Unicode with MIME
.Re

STANDARDS

ISO 10646-1: 1993 (‘‘Unicode’’), RFC 2044: 1996 (‘‘UTF-8’’), -ansiC.

DIAGNOSTICS

You should always check the RETURN VALUES.

AUTHORS

This manual page was written by
.An G. Adam Stanislav Aq adam@whizkidtech.net .

BUGS

None known.
Search for    or go to Top of page |  Section 3 |  Main Index


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