www.delorie.com/djgpp/doc/libc-2.01/libc_623.html   search  
Go to the first, previous, next, last section, table of contents.


strtod

Syntax

#include <stdlib.h>

double strtod(const char *s, char **endp);

Description

This function converts as many characters of s that look like a floating point number into one, and sets *endp to point to the first unused character.

Return Value

The value the string represented.

Example

char *buf = "123ret";
char *bp;
double x = strtod(buf, &bp);


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997