-

Functions HI-TECH C ATOF

From HI-TECH C for CP/M Fan WIKI(EN)
Revision as of 18:18, 31 July 2017 by Kumokosi (talk | contribs) (Created page with "<strong>ATOF, ATOI, ATOL</strong> ==SYNOPSIS== #include <math.h> double atof(char * s) int atoi(char * s) #include <stdlib.h> long atol(char * s) ==DES...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ATOF, ATOI, ATOL

SYNOPSIS

#include  <math.h>

double    atof(char * s)
int atoi(char * s)

#include  <stdlib.h>

long      atol(char * s)


DESCRIPTION

These routines convert a decimal number in the argument string s into a double float, integer or long integer respectively. Leading blanks are skipped over. In the case of atof(), the number may be in scientific notation.