iconv.h(7POSIX)

๐ŸŒˆ iconv.h โ€” the codeset conversion glow-up โœจ

okay bestie, welcome to the iconv.h(7POSIX) page from the POSIX Programmer's Manual ๐Ÿ’–. That's the manual name, that's the vibe, we're moving on.


๐Ÿšจ PROLOG ๐Ÿšจ

ngl this next part is important so listen up: this manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ โ€” like, go check the corresponding Linux manual page for the actual Linux behavior, no cap. Or... the interface might not even be implemented on Linux at all ๐Ÿ’€. So don't come for me if it's not there, okay?


โœจ NAME โœจ

iconv.h โ€” it's giving codeset conversion facility ๐Ÿฆ‹


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

#include <iconv.h>

that's it, that's the whole synopsis, she's simple, she's iconic ๐Ÿ‘‘


๐Ÿ’… DESCRIPTION ๐Ÿ’…

so the <iconv.h> header shall define these types, periodt:

  • iconv_t โ€” identifies the conversion from one codeset to another. it's literally the little handle that says "yeah I'm converting from this to that" ๐Ÿ”ฅ
  • size_t โ€” as described in <sys/types.h>. go read that one, bestie, it's a whole thing ๐ŸŒธ

and then! the following shall be declared as functions and may also be defined as macros. Function prototypes shall be provided. no skipping this part, it's the main character energy right here:

size_t  iconv(iconv_t, char **restrict, size_t *restrict,
            char **restrict, size_t *restrict);
int     iconv_close(iconv_t);
iconv_t iconv_open(const char *, const char *);
๐Ÿ’ก the following sections are informative. that's a thing the standard says, not me being shady.

๐Ÿ™ˆ APPLICATION USAGE ๐Ÿ™ˆ

None. that's it. nothing. empty. a void. she said nothing and meant it ๐Ÿ’€


๐Ÿงš RATIONALE ๐Ÿงš

None. again!! nothing!! the silence is deafening ๐Ÿซถ


๐Ÿ”ฎ FUTURE DIRECTIONS ๐Ÿ”ฎ

None. bestie the future is blank, we're living in the present, slay โœจ


๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

  • <sys_types.h>
  • The System Interfaces volume of POSIX.1โ€2017, iconv(), iconv_close(), iconv_open()

go read those, they're the extended universe iykyk ๐Ÿ’œ


Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group.

In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .


okay that's the whole page, you ate that ๐Ÿ’– big love to IEEE/The Open Group, copyright 2017, and this was iconv.h(7POSIX) โ€” catch you in the next man page, bestie ๐ŸŽ€๐Ÿฆ‹โญ

๐Ÿ“ฆ where this page comes from