Changeset 1869 for trunk/src


Ignore:
Timestamp:
Mar 14, 2005, 5:47:39 AM (21 years ago)
Author:
bird
Message:

Initial coding.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/testcase/libc/miscinnotek/strtof-1.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1868 r1869  
    11#include <stdio.h>
     2
     3
     4
    25
    36int main(void)
    47{
    5     float th;
    6     //sscanf("-30", "%f", &th);
    78    char *pszEnd = NULL;
    8     th = strtof("-30", &pszEnd);
    9     printf("%f\n", th);
     9    float th = strtof("-30", &pszEnd);
     10    if (th != -30.0)
     11    {
     12        printf("strtof-1: FAILURE (strtof -> %f)\n", th);
     13        return 1;
     14    }
    1015
     16
     17
     18
     19
     20
     21
     22
     23
     24
    1125    return 0;
    1226}
Note: See TracChangeset for help on using the changeset viewer.