YAZ  5.25.0
iconv_encode_danmarc.c File Reference

Danmarc2 character set encoding. More...

#include <assert.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <yaz/xmalloc.h>
#include "iconv-p.h"

Go to the source code of this file.


static size_t write_danmarc (yaz_iconv_t cd, yaz_iconv_encoder_t en, unsigned long x, char **outbuf, size_t *outbytesleft)
yaz_iconv_encoder_t yaz_danmarc_encoder (const char *tocode, yaz_iconv_encoder_t e)

Detailed Description

Danmarc2 character set encoding.

Definition in file iconv_encode_danmarc.c.

Function Documentation

◆ write_danmarc()

static size_t write_danmarc ( yaz_iconv_t  cd,
yaz_iconv_encoder_t  en,
unsigned long  x,
char **  outbuf,
size_t *  outbytesleft 

Definition at line 22 of file iconv_encode_danmarc.c.

References YAZ_ICONV_E2BIG, and yaz_iconv_set_errno().

Referenced by yaz_danmarc_encoder().

◆ yaz_danmarc_encoder()

yaz_iconv_encoder_t yaz_danmarc_encoder ( const char *  tocode,
yaz_iconv_encoder_t  e