]> git.ipfire.org Git - thirdparty/util-linux.git/blame - include/encode.h
Merge branch 'PR/lscpu-caches-sep' of github.com:karelzak/util-linux-work
[thirdparty/util-linux.git] / include / encode.h
CommitLineData
faeb1b64
KZ
1/*
2 * SPDX-License-Identifier: LGPL-2.1-or-later
3 *
4 * This file may be distributed under the terms of the
5 * GNU Lesser General Public License.
6 */
35c6ed61
KZ
7#ifndef UTIL_LINUX_ENCODE_H
8#define UTIL_LINUX_ENCODE_H
9
10extern size_t ul_encode_to_utf8(int enc, unsigned char *dest, size_t len,
11 const unsigned char *src, size_t count)
12 __attribute__((nonnull));
13
14enum {
15 UL_ENCODE_UTF16BE = 0,
16 UL_ENCODE_UTF16LE,
17 UL_ENCODE_LATIN1
18};
19
20#endif