|
libcfe
0.12.1
some useful C-functions
|
#include "config.h"#include "char_to_double.h"#include <string.h>#include <math.h>#include "len.h"#include "char_to_int.h"Go to the source code of this file.
Macros | |
| #define | MIN(a, b) (a > b ? b : a) |
Functions | |
| short int | check_double (const char *s, int len) |
| long double | char_to_double (const char *s, int len) |
Definition at line 11 of file char_to_double.c.
| long double char_to_double | ( | const char * | s, |
| int | len | ||
| ) |
Return the decimal number this string represents.
| [in] | s | The string that contains the number. |
| [in] | len | The length of the string that s points to. If -1 is given the length is auto determined and a null terminated string is assumed. |
Definition at line 38 of file char_to_double.c.
| short int check_double | ( | const char * | s, |
| int | len | ||
| ) |
Check if the string represents a decimal value.
| [in] | s | The string that contains the number. |
| [in] | len | The length of the string that s points to. If -1 is given the length is auto determined and a null terminated string is assumed. |
Definition at line 14 of file char_to_double.c.