#7179: HP-UX sympow-1.018.1.p6 fail to find atoll(). Will atol() do?
---------------------------------------------------------+------------------
Reporter: drkirkby | Owner: tbd
Type: defect | Status: new
Priority: minor | Milestone:
sage-wishlist
Component: build | Keywords: HP-UX
atoll
Work_issues: | Author:
Upstream: Reported upstream. Little or no feedback. | Reviewer:
Merged: |
---------------------------------------------------------+------------------
Comment(by drkirkby):
Mark thinks atol() may be ok, though it could potentially introduce some
limitations, which would in my opinion be undesirable.
[http://p2p.wrox.com/c-programming/16319-string-long-long-without-using-
atoll.html]
has this bit of code which implements atoll()
{{{
long long my_atoll(char *instr)
{
long long retval;
int i;
retval = 0;
for (; *instr; instr++) {
retval = 10*retval + (*instr - '0');
}
return retval;
}
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7179#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.