FreeBSD/tools/test/iconv/posix/posix.c
/*
 * iconv_close must return (iconv_t)-1 if conversion descriptor is
 * invalid and set errno to EBADF.
 */
iconv_close must return (iconv_t)-1 if conversion descriptor is
invalid and set errno to EBADF.
iconv_close must return ( iconv_t ) - 1 if conversion descriptor is invalid and set errno to EBADF .
static int
close_1(void)
{
	iconv_t cd = (iconv_t)-1;
	return ((iconv_close(cd) == -1) && (errno = EBADF) ? 0 : 1);
}
static int close_1 ( void ) { iconv_t cd = ( iconv_t ) - 1 ; return ( ( iconv_close ( cd ) == -1 ) && ( errno = EBADF ) ? 0 : 1 ) ; }
iconv_close must return (iconv_t)-1 if conversion descriptor is
 invalid and set errno to EBADF.
iconv_close must return ( iconv_t ) - 1 if conversion descriptor is invalid and set errno to EBADF .