GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73574
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
xdrdouble.c File Reference

DBMI Library (base) - external data representation (double) More...

#include "xdr.h"
Include dependency graph for xdrdouble.c:

Go to the source code of this file.

Functions

int db__send_double (double d)
 Send double. More...
 
int db__recv_double (double *d)
 Receive double. More...
 
int db__send_double_array (const double *x, int n)
 Send double array. More...
 
int db__recv_double_array (double **x, int *n)
 Receive double array. More...
 

Detailed Description

DBMI Library (base) - external data representation (double)

(C) 1999-2009, 2011 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Joel Jones (CERL/UIUC), Radim Blazek, Brad Douglas, Markus Neteler
Doxygenized by Martin Landa <landa.martin gmail.com> (2011)

Definition in file xdrdouble.c.

Function Documentation

int db__recv_double ( double *  d)

Receive double.

Parameters
d

Definition at line 42 of file xdrdouble.c.

References db__recv(), DB_OK, DB_PROTOCOL_ERR, and db_protocol_error().

int db__recv_double_array ( double **  x,
int n 
)

Receive double array.

Returns an allocated array of doubles Caller is responsible for free()

Parameters
x
n
Returns

Definition at line 90 of file xdrdouble.c.

References count, db__recv(), db_calloc(), DB_OK, DB_PROTOCOL_ERR, db_protocol_error(), and NULL.

int db__send_double ( double  d)

Send double.

Parameters
d
Returns

Definition at line 24 of file xdrdouble.c.

References db__send(), DB_OK, DB_PROTOCOL_ERR, and db_protocol_error().

int db__send_double_array ( const double *  x,
int  n 
)

Send double array.

Parameters
x
n
Returns

Definition at line 63 of file xdrdouble.c.

References db__send(), DB_OK, DB_PROTOCOL_ERR, and db_protocol_error().