~ubuntu-branches/ubuntu/utopic/gettext/utopic

« back to all changes in this revision

Viewing changes to gettext-tools/gnulib-lib/xstriconv.h

  • Committer: Colin Watson
  • Date: 2010-08-01 21:36:08 UTC
  • mfrom: (2.1.10 sid)
  • Revision ID: cjwatson@canonical.com-20100801213608-yy7vkm8lpatep3ci
merge from Debian 0.18.1.1-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Charset conversion with out-of-memory checking.
2
 
   Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc.
 
2
   Copyright (C) 2001-2004, 2006-2007, 2009-2010 Free Software Foundation, Inc.
3
3
   Written by Bruno Haible and Simon Josefsson.
4
4
 
5
5
   This program is free software: you can redistribute it and/or modify
43
43
   in *LENGTHP.  *RESULTP is set to a freshly allocated memory block, or is
44
44
   unchanged if no dynamic memory allocation was necessary.  */
45
45
extern int xmem_cd_iconv (const char *src, size_t srclen, iconv_t cd,
46
 
                          char **resultp, size_t *lengthp);
 
46
                          char **resultp, size_t *lengthp);
47
47
 
48
48
/* Convert an entire string from one encoding to another, using iconv.
49
49
   The original string is the NUL-terminated string starting at SRC.
67
67
   Return value: the freshly allocated resulting NUL-terminated string if
68
68
   successful, otherwise NULL and errno set.  */
69
69
extern char * xstr_iconv (const char *src,
70
 
                          const char *from_codeset, const char *to_codeset);
 
70
                          const char *from_codeset, const char *to_codeset);
71
71
 
72
72
 
73
73
#ifdef __cplusplus