]> git.lyx.org Git - lyx.git/blob - src/support/atoi.C
674c2edef315ac84060dfd86d42b8b38881d7f63
[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 "support/lyxlib.h"
15
16 #include <cstdlib>
17
18 #ifndef CXX_GLOBAL_CSTD
19 using std::atoi;
20 #endif
21
22 int lyx::support::atoi(std::string const & nstr)
23 {
24         return ::atoi(nstr.c_str());
25 }