Re: function conversion



xdevel <xdevel1999@xxxxxxxxx> writes:

On 2 Lug, 18:43, Keith Thompson <k...@xxxxxxx> wrote:
xdevel <xdevel1...@xxxxxxxxx> writes:
<snip>
Yes, but I wish to know if there are standard "one-to-one" functions.
I read that i.e. itoa is not!

No.

You can see all the functions in the standard C library by reading the
standard; search for "n1124.pdf" to see the latest draft.

NOTE:
(Please don't quote signatures; trim quoted material to what's
necessary for your response to make sense.)

--
Keith Thompson (The_Other_Keith) k...@xxxxxxx <http://www.ghoti.net/~kst>
<the rest snipped>

You not only quoted the sig, you left the request asking you not to.

ok I have seen in the n1124 so my question is simply for which reasons
there aren't!
philosophical? technical?

Technical plus historical. Historically, the set evolved over time and not
breaking old code took precedence over "tidying up" the library.

The technical reason is that the set of values that C uses to
represent strings behaves very differently from the set of values it
has to represent numerical quantities. Hence, no real symmetry is
possible.

not important thanks to sprintf and other
solutions?
is not better to make all the possible functions to manage almost
every programming aspect?

No, then you'd get something as awful as C#.

may be, but obviously this is only a my "poor" opinion if a c (or c++)
programmer had more
standard library functions should be more productive (think to Java,
C# and so on).

Ah.

--
Ben.
.



Relevant Pages

  • Re: Is C99 the final C? (some suggestions)
    ... The C standard specifies what is UB and what's not. ... If you have multithreading, they you have to lock and unlock ... > your heap, or use other strategies to make sure one thread isn't in the middle ... Having a different set of condoned operators at each programming ...
    (comp.lang.c)
  • Re: Portability: Harmony between PC and microcontroller
    ... int is the natural integer type for the system. ... You are, perhaps unintentionally, paraphrasing the standard in a way ... One of the things that you might not realize is that the C programming ... In the real world, most embedded systems have more complex jobs to do, ...
    (comp.lang.c)
  • Re: Sequence points
    ... They have been in the Standard since the Standard first appeared in 1989, ... you still don't understand sequence points. ... in areas outside of programming. ... programmers are in fact unequal to the demands of assembler language, ...
    (comp.programming)
  • Re: Code Review - is this code shit
    ... Good even though it's not in the Holy Standard. ... That is the stupidest analogy for a programming language I've ever ... A fortiori a program or a language is none of these things. ... The original message has the space there. ...
    (comp.lang.c)
  • RfD - Object Extensions
    ... While there is general agreement that Object-Oriented Programming (OOP) ... Forth currently has no standard extension for this. ...
    (comp.lang.forth)