GNU Radio 3.4.2 C++ API
strtod_si.h
Go to the documentation of this file.
00001 /* -*- c++ -*- */
00002 /*
00003  * Copyright 2007 Free Software Foundation, Inc.
00004  *
00005  * This program is free software: you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation, either version 3 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017  */
00018 
00019 #ifndef INCLUDED_STRTOD_SI_H
00020 #define INCLUDED_STRTOD_SI_H
00021 
00022 #include "usrp2_cdefs.h"
00023 __U2_BEGIN_DECLS
00024 
00025 
00026 /*!
00027  * \brief convert string at s to double honoring any trailing SI suffixes
00028  *
00029  * \param[in]  s is the string to convert
00030  * \param[out] result is the converted value
00031  * \returns non-zero iff conversion was successful.
00032  */
00033 int strtod_si(const char *s, double *result);
00034 
00035 __U2_END_DECLS
00036 
00037 
00038 #endif /* INCLUDED_STRTOD_SI_H */
00039