MercuryDPM  Beta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
functions.h File Reference

Go to the source code of this file.

Functions

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

Function Documentation

float uatoi ( char  s[])

Definition at line 1 of file functions.h.

2 {
3  return( atof(s) );
4 }
int uuatoi ( char  s[])

Definition at line 6 of file functions.h.

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 }