/* WARNING: This file was generated by dkct. Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: test-binenc.ctr */ /** @file test-binenc.c The test-binenc module. */ #line 1 "test-binenc.ctr" #include "dk4conf.h" #include #include "dk4binenc.h" static char tbuf[9]; static const unsigned char srcbuf[] = { 0x01, 0x02, 0x0A, 0x0F, 0x20, 0x24, 0xFF }; int main(void) { int res; res = dk4binenc( tbuf, sizeof(tbuf), srcbuf, sizeof(srcbuf), DK4_BINARY_TO_TEXT_ENCODING_A85, NULL ); if (0 < res) { fputs(tbuf, stdout); fputc('\n', stdout); } else { fputs("buffer to small\n", stdout); } return 0; }