]> mj.ucw.cz Git - libucw.git/blob - charset/mp-charconv.c
0235ae7693257fd00037d38ea06f78a2902f8b4f
[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
12 byte *
13 mp_conv(struct mempool *mp, byte *s, uns in_cs, uns out_cs)
14 {
15   return mp_strdup(mp, stk_conv(s, in_cs, out_cs));
16 }