]> mj.ucw.cz Git - libucw.git/blob - charset/mp-charconv.c
731d591ef126fcc80aab9b1253660af77ead6db8
[libucw.git] / charset / mp-charconv.c
1 /*
2  *      Sherlock Library -- Character Conversion with Allocation on a Memory Pool 
3  *
4  *      (c) 2006 Pavel Charvat <pchar@ucw.cz>
5  */
6
7 #include "lib/lib.h"
8 #include "lib/mempool.h"
9 #include "charset/mp-charconv.h"
10 #include "charset/stk-charconv.h"
11 #include <string.h>
12
13 byte *
14 mp_conv(struct mempool *mp, byte *s, uns in_cs, uns out_cs)
15 {
16   return mp_strdup(mp, stk_conv(s, in_cs, out_cs));
17 }