www.delorie.com/djgpp/doc/libc/libc_56.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

_atold

Syntax

 
#include <stdlib.h>

long double _atold(const char *string);

Description

Convert as much of the string as possible to an equivalent long double precision real number.

This function is almost like _strtold(string, NULL) (see section _strtold).

Return Value

The equivalent value, or zero if the string does not represent a number.

Portability

ANSI/ISO C No
POSIX No

Example

 
main(int argc, char **argv)
{
  long double d = _atold(argv[1]);
  ...


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004