functions.h File Reference

Go to the source code of this file.

Functions

float uatoi (char s[])
 
int uuatoi (char s[])
 

Function Documentation

◆ uatoi()

float uatoi ( char  s[])
2 {
3  return( atof(s) );
4 }

◆ uuatoi()

int uuatoi ( char  s[])
7 {
8  int i, n;
9 
10  n = 0;
11  for (i = 0; s[i] >= '0' && s[i] <= '9'; ++ i)
12  n = 10 * n + (s[i] - '0');
13  return n;
14 }
const unsigned n
Definition: CG3DPackingUnitTest.cpp:32
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51

References constants::i, and n.