fileno.c 561 B

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