]> git.lyx.org Git - lyx.git/blob - src/support/atoi.C
0b091fa2ab21c01d90fab99b467676e57aa17e6f
[lyx.git] / src / support / atoi.C
1 /**
2  * \file atoi.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Lars Gullik Bjønnes
7  * \author Jean-Marc Lasgouttes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #include <config.h>
13
14 #include <cstdlib>
15
16 #include "lyxlib.h"
17
18 #ifndef CXX_GLOBAL_CSTD
19 using std::atoi;
20 #endif
21
22 int lyx::support::atoi(string const & nstr)
23 {
24         return ::atoi(nstr.c_str());
25 }