GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71924
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
xdrint.c File Reference

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

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

Go to the source code of this file.

Functions

int db__send_int (int n)
 Send integer. More...
 
int db__recv_int (int *n)
 Receive integer. More...
 
int db__send_int_array (const int *x, int n)
 Send integer array. More...
 
int db__recv_int_array (int **x, int *n)
 Receive integer array. More...
 

Detailed Description

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

(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 xdrint.c.

Function Documentation

int db__recv_int ( int n)

Receive integer.

Parameters
n
Returns

Definition at line 44 of file xdrint.c.

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

Referenced by db__recv_string_array(), and db__recv_token().

int db__recv_int_array ( int **  x,
int n 
)

Receive integer array.

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

Parameters
x
n
Returns

Definition at line 92 of file xdrint.c.

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

int db__send_int ( int  n)

Send integer.

Parameters
n
Returns

Definition at line 24 of file xdrint.c.

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

Referenced by db__send_procedure_not_implemented(), db__send_procedure_ok(), db__send_string_array(), and db__send_token().

int db__send_int_array ( const int x,
int  n 
)

Send integer array.

Parameters
x
n
Returns

Definition at line 65 of file xdrint.c.

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