source: rtems/testsuites/libtests/POSIX/iconv.c @ 382d653

5
Last change on this file since 382d653 was 382d653, checked in by Joel Sherrill <joel@…>, on 08/10/18 at 13:23:01

libtests/POSIX: Fix warnings and style.

  • Property mode set to 100644
File size: 508 bytes
Line 
1/*
2 * Copyright (c) 2011 by
3 * Ralf Corsépius, Ulm, Germany. All rights reserved.
4 *
5 * Permission to use, copy, modify, and distribute this software
6 * is freely granted, provided that this notice is preserved.
7 */
8
9#ifdef HAVE_CONFIG_H
10#include "config.h"
11#endif
12
13#include <iconv.h>
14
15int main(void)
16{
17  iconv_t cd = NULL;
18  char inbuf[42];
19  size_t isize;
20  char outbuf[42];
21  size_t osize;
22  size_t ret;
23
24  char *i = inbuf;
25  char *o = outbuf;
26  ret = iconv(cd, &i, &isize, &o, &osize);
27
28  return ret;
29}
Note: See TracBrowser for help on using the repository browser.