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

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

#include <stdlib.h>
#include "xdr.h"
Include dependency graph for xdrshort.c:

Go to the source code of this file.

Functions

int db__send_short (int n)
 Send short. More...
 
int db__recv_short (short *n)
 Receive short. More...
 
int db__send_short_array (const short *x, int n)
 Send short array. More...
 
int db__recv_short_array (short **x, int *n)
 Receive short array. More...
 

Detailed Description

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

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

Function Documentation

int db__recv_short ( short *  n)

Receive short.

Parameters
n
Returns

Definition at line 46 of file xdrshort.c.

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

int db__recv_short_array ( short **  x,
int n 
)

Receive short array.

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

Parameters
x
n
Returns

Definition at line 94 of file xdrshort.c.

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

int db__send_short ( int  n)

Send short.

Parameters
n
Returns

Definition at line 25 of file xdrshort.c.

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

int db__send_short_array ( const short *  x,
int  n 
)

Send short array.

Parameters
x
n
Returns

Definition at line 67 of file xdrshort.c.

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