8
size_t as,bs=255; /* as - doesn't understand end of string,
9
must be exact number */
14
length=strlen(a);as=length;
15
ic=iconv_open("KOI8-R","CP1251");
16
printf("%li %li\n",ic,(iconv_t)(-1));
18
printf("Pointers befor: %p %p\n",a,b);
19
printf("as bs before: %lu %lu\n",as,bs);
20
printf("String before: %s\n",a);
21
printf("Characters converted in non reversible way: %lu\n",iconv(ic,&a,&as,&b,&bs));
22
printf("Pointers after: %p %p\n",a,b);
23
printf("as bs before: %lu %lu\n",as,bs);
24
printf("Strings after: %s %s\n",a-length,b-length);
b'\\ No newline at end of file'