Update contrib.
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 // Contains the source for character set conversion
36 EXPORT_C iconv_t iconv_open(const char *tocode, const char *fromcode)
38 return _iconv_open_r(&errno, tocode, fromcode);
42 EXPORT_C int iconv_close(iconv_t cd)
44 return _iconv_close_r(&errno, cd);
48 EXPORT_C size_t iconv(iconv_t cd, const char **inbuf, size_t *inbytesleft,
49 char **outbuf, size_t *outbytesleft)
51 return _iconv_r(&errno, cd, inbuf, inbytesleft, outbuf, outbytesleft);