File: tryiconv.c

package info (click to toggle)
gatling 0.13-6
  • links: PTS
  • area: main
  • in suites: sid, stretch
  • size: 1,196 kB
  • ctags: 1,115
  • sloc: ansic: 23,805; makefile: 143; sh: 71; perl: 30
file content (15 lines) | stat: -rw-r--r-- 244 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <sys/types.h>
#include <iconv.h>

int main() {
  iconv_t i=iconv_open("UTF-16LE","ISO-8859-1");
  size_t X,Y;
  char* x,* y;
  char src[]="fnord";
  char dest[100];
  X=6;
  Y=sizeof(dest);
  x=src;
  y=dest;
  iconv(i,&x,&X,&y,&Y);
}