O nás     Inzerce     KontaktSpolehlivé informace o IT již od roku 2011
Hledat
Nepřehlédněte: Nejlepší IT: Pozoruhodné IT produkty pro rok 2024 podruhé
Správa dokumentů
Digitální transformace
Informační systémy
Hlavní rubriky: Informační systémy, Mobilní technologie, Datová centra, Sítě, IT bezpečnost, Software, Hardware, Zkušenosti a názory, Speciály

Pozoruhodné IT produkty 2024 podruhé
E-knihy o IT zdarma
Manuál Linux
[Linux manuál]

iconv_open: funkce alokace převodu kódu

Originální popis anglicky: iconv_open - codeset conversion allocation function

Návod, kniha: POSIX Programmer's Manual

STRUČNĚ

#include <iconv.h>
 
 
iconv_t iconv_open(const char * tocode, const char *fromcode);
 

POPIS / INSTRUKCE

The iconv_open() function shall return a conversion descriptor that describes a conversion from the codeset specified by the string pointed to by the fromcode argument to the codeset specified by the string pointed to by the tocode argument. For state-dependent encodings, the conversion descriptor shall be in a codeset-dependent initial shift state, ready for immediate use with iconv().
Settings of fromcode and tocode and their permitted combinations are implementation-defined.
A conversion descriptor shall remain valid until it is closed by iconv_close() or an implicit close.
If a file descriptor is used to implement conversion descriptors, the FD_CLOEXEC flag shall be set; see <fcntl.h>.

NÁVRATOVÁ HODNOTA

Upon successful completion, iconv_open() shall return a conversion descriptor for use on subsequent calls to iconv(). Otherwise, iconv_open() shall return ( iconv_t)-1 and set errno to indicate the error.

CHYBY / ERRORY

The iconv_open() function may fail if:
EMFILE
{OPEN_MAX} file descriptors are currently open in the calling process.
ENFILE
Too many files are currently open in the system.
ENOMEM
Insufficient storage space is available.
EINVAL
The conversion specified by fromcode and tocode is not supported by the implementation.
 
The following sections are informative.

PŘÍKLADY POUŽITÍ

None.

APPLICATION USAGE

Some implementations of iconv_open() use malloc() to allocate space for internal buffer areas. The iconv_open() function may fail if there is insufficient storage space to accommodate these buffers.
Conforming applications must assume that conversion descriptors are not valid after a call to one of the exec functions.
Application developers should consult the system documentation to determine the supported codesets and their naming schemes.

RATIONALE

None.

FUTURE DIRECTIONS

None.

SOUVISEJÍCÍ

iconv() , iconv_close() , the Base Definitions volume of IEEE Std 1003.1-2001, <fcntl.h>, <iconv.h> Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 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 .
2003 IEEE/The Open Group
©2011-2024 BusinessIT.cz, ISSN 1805-0522 | Názvy použité v textech mohou být ochrannými známkami příslušných vlastníků.
Provozovatel: Bispiral, s.r.o., kontakt: BusinessIT(at)Bispiral.com | Inzerce: Best Online Media, s.r.o., zuzana@online-media.cz
O vydavateli | Pravidla webu BusinessIT.cz a ochrana soukromí | Používáme účetní program Money S3 | pg(9132)