home *** CD-ROM | disk | FTP | other *** search
/ Zodiac Super OZ / MEDIADEPOT.ISO / FILES / 16 / FREEDOS.ZIP / FD_A4PRE.ZIP / SOURCE / MSGLIB.ZIP / freedos / src / include / fdlib.h < prev    next >
Text File  |  1995-03-29  |  990b  |  35 lines

  1. /* $Id$
  2.    $Locker$    $Name$    $State$
  3.  
  4.     Declaration of functions and global variables within the
  5.     FreeDos library.
  6.  
  7.    $Log$
  8. */
  9.  
  10. #ifndef __FDLIB_H
  11. #define __FDLIB_H
  12.  
  13. int strtod(char *nr, char **endp, int radix);
  14. #define strtol strtod
  15. /* Convert a string into an int value.
  16.  
  17.    Arguments:
  18.        nr: ASCII string: [{ws}][-|+][{ws}]{digit}[{ws}]
  19.            ws: whitespace, as stated by isspace()
  20.            digit: 0..9, a..z or A..Z; where a == A == 10
  21.        endp: pointer behind the third {ws}
  22.        radix: base of the number; if zero, radix is computed
  23.         fromout the start of {digit} as in C sources:
  24.             1) first digit == 0 && second digit == x or X => radix = 16
  25.             2) first digit == 0 => radix = 8
  26.             3) => radix = 10
  27.  
  28.    Return:
  29.        return value: as computed until end or error; if not digit at all, zero
  30.        endp: points to the character, where the error occured
  31.              NULL, if the whole string was read
  32.              if endp is NULL, no error position is stored
  33. */
  34. #endif
  35.