Unix Technical Forum

Re: strtonum(3) in FreeBSD?

This is a discussion on Re: strtonum(3) in FreeBSD? within the lucky.openbsd.tech forums, part of the OpenBSD category; --> > >> >request that you use intmax_t rather than "long long" for the integers. > >> >Then the API ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-22-2008, 11:26 AM
Theo de Raadt
 
Posts: n/a
Default Re: strtonum(3) in FreeBSD?

> >> >request that you use intmax_t rather than "long long" for the integers.
> >> >Then the API scales cleanly when some future processor adds 128-bit ints.
> >> >Since intmax_t is "long long" on all current platforms that wouldn't
> >> >cause compatability problems with OpenBSD.
> >>
> >> I second that. Cc'd to OpenBSD-Tech. Comments?

>
> >If you must deal with octal and hex numbers, do it yourself. This is
> >not the typical case, and we specially avoid handling them to keep
> >this simple.

>
> You already said that, but what about using intmax_t as return type?


No.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:01 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com