GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
fileno.c
Go to the documentation of this file.
1 /*!
2  \file rowio/fileno.c
3 
4  \brief RowIO library - file descriptor
5 
6  (C) 2001-2009 by the GRASS Development Team
7 
8  This program is free software under the GNU General Public License
9  (>=v2). Read the file COPYING that comes with GRASS for details.
10 
11  \author Original author CERL
12 */
13 
14 #include <grass/rowio.h>
15 
16 /*!
17  * \brief Get file descriptor
18  *
19  * Returns the file descriptor associated with the ROWIO structure.
20  *
21  * \param R pointer to ROWIO structure
22  *
23  * \return file descriptor
24  */
25 int Rowio_fileno(const ROWIO * R)
26 {
27  return R->fd;
28 }
Definition: rowio.h:4
int fd
Definition: rowio.h:6
int Rowio_fileno(const ROWIO *R)
Get file descriptor.
Definition: fileno.c:25