summaryrefslogtreecommitdiffstats
path: root/include/encode.h
blob: b259ab533cd7542ef91a4d3c3bb849e74ac491bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef UTIL_LINUX_ENCODE_H
#define UTIL_LINUX_ENCODE_H

extern size_t ul_encode_to_utf8(int enc, unsigned char *dest, size_t len,
				const unsigned char *src, size_t count)
			__attribute__((nonnull));

enum {
	UL_ENCODE_UTF16BE = 0,
	UL_ENCODE_UTF16LE,
	UL_ENCODE_LATIN1
};

#endif