Ignore:
Timestamp:
2018-01-16T19:12:36Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
33b8d024
Parents:
aec41c8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-16 19:04:19)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-16 19:12:36)
Message:

Implement the full suite of standard string-to-int conversion functions in libc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/source/stdio/scanf.c

    raec41c8 rd39c46e0  
    563563                                }
    564564                                char *fmt_new = NULL;
    565                                 width = posix_strtol(fmt, &fmt_new, 10);
     565                                width = strtol(fmt, &fmt_new, 10);
    566566                                if (width != 0) {
    567567                                        fmt = fmt_new;
     
    648648                                /* Try to convert the integer. */
    649649                                if (int_conv_unsigned) {
    650                                         ures = posix_strtoull(cur_limited, &cur_updated, int_conv_base);
     650                                        ures = strtoull(cur_limited, &cur_updated, int_conv_base);
    651651                                } else {
    652                                         sres = posix_strtoll(cur_limited, &cur_updated, int_conv_base);
     652                                        sres = strtoll(cur_limited, &cur_updated, int_conv_base);
    653653                                }
    654654
Note: See TracChangeset for help on using the changeset viewer.