You may wish to use the strtol function there is an example of using it in the man page. Reed Copsey k 57 Wouldn’t you just convert to UTF-8? Introduction to Linux – A Hands on Guide This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter. All times are GMT
|Date Added:||2 April 2015|
|File Size:||15.31 Mb|
|Operating Systems:||Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X|
|Price:||Free* [*Free Regsitration Required]|
Originally Posted by harishisnow The scenario works fine with the strtoll function. Sign up using Email and Password. Hello, The scenario works fine with the strtoll function. Yup, is the maximum size of an integer; you’ll need to use a long instead. Last edited by harishisnow; at If you need to reset your password, click here.
atoi(3) – Linux man page
Linux atoi not working as expected
Join our community today! Originally Posted by harishisnow.
atoi.c source code [glibc/stdlib/atoi.c] – Woboq Code Browser
Generally it is to your advantage to use linxcasting the result to an int if necessary; e. Hope this helps some. I can find something for MS wtoi but I can find anything in a standard Linux lib.
Wouldn’t you just convert to UTF-8?
You are currently viewing LQ as a guest. Find More Posts by tronayne. Originally Atli by tronayne. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Hello, Even the strtol function doesnt help.
I did a search bash function but it get less results then find. Please visit this page to clear all LQ-related cookies.