Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » AVR-GCC
  • » [avr-gcc-list] Poll: Who uses itoa() & co with base != {2, 8, 10, 16}? [RSS Feed]

#1 Nov. 22, 2005 11:25:02

Bernard F.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[avr-gcc-list] Poll: Who uses itoa() & co with base != {2, 8, 10, 16}?


Joerg Wunsch wrote:While itoa() is not really standardized in any way (at least not for
C, I'm not sure for C++), it is commonly implemented with a possible
base of , so changing that would constitute an API change.

Opinions?IMHO if there an API change, then the function name must change also.That could be a very tricky thing to debug, one never knows how someoneelse may use itoa() for weird base conversion. I get mad when I run in aproblem because someone thought that 'it would be better that way' but Iwas not made aware of the change. In French we say "L'enfer est pavé debonnes intentions". (The hell is paved good intentions (googletranslation?))I vote for something like itoa_fast() and have itoa() keeps its oldfeatures.Bernard


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.orghttp://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Offline

  • Root
  • » AVR-GCC
  • » [avr-gcc-list] Poll: Who uses itoa() & co with base != {2, 8, 10, 16}? [RSS Feed]

Board footer

Moderator control

Enjoy the 22nd of April
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support