1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
/*
* Copyright 2013 University Corporation for Atmospheric Research
*
* This file is part of the UDUNITS-2 package. See the file COPYRIGHT
* in the top-level source-directory of the package for copying and
* redistribution conditions.
*/
/*
* Status of the last operation by the UDUNITS2(3) library.
*/
/*LINTLIBRARY*/
#ifndef _XOPEN_SOURCE
# define _XOPEN_SOURCE 600
#endif
#include "udunits2.h"
static ut_status _status = UT_SUCCESS;
/*
* Returns the status of the last operation by the units module. This function
* will not change the status.
*/
ut_status
ut_get_status()
{
return _status;
}
/*
* Sets the status of the units module. This function would not normally be
* called by the user unless they were doing their own parsing or formatting.
*
* Arguments:
* status The status of the units module.
*/
void
ut_set_status(
const ut_status status)
{
_status = status;
}
|