
backend/Makefiles to be patched could significantly be reduced since they have been adopted to the QNX4 needs. Andreas Kardos
32 lines
623 B
C
32 lines
623 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* tstrint.c
|
|
* rint() test
|
|
*
|
|
* Copyright (c) 1999, repas AEG Automation GmbH
|
|
*
|
|
*
|
|
* IDENTIFICATION
|
|
* $Header: /cvsroot/pgsql/src/backend/port/qnx/Attic/tstrint.c,v 1.1 1999/12/16 01:25:06 momjian Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
|
|
#include <errno.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "os.h"
|
|
|
|
|
|
int main( int argc, char **argv )
|
|
{
|
|
double x;
|
|
|
|
if( argc != 2 ) exit( 1 );
|
|
|
|
x = strtod( argv[1], NULL );
|
|
printf( "rint( %f ) = %f\n", x, rint( x ) );
|
|
|
|
return 0;
|
|
}
|