Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] some C string conversion functions?

2005-04-22 by Colin Paul Gloster

On Fri, Apr 22, 2005 at 02:18:15PM -0000, Tony wrote:

"[..]

I see the modulo function for floats, but is there an integer version 
of modulo?  I did not see that."

This has nothing to do with strings. C does not need an integral modulo
function because it provides the % modulo operator for this as part of the
language itself.


"I found itoa() in the stdlib.h.

[..]

Is there a "dtoa" to convert a float to ascii?  I seem to remember 
something from my days when I used C very regularly, but now that I am 
getting back into it, I can not recall."

Third parties have written such functions but ANSI had itoa() and not its
converse.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.