On Mon, 5 Nov 2007 09:04:32 +0800 (CST)
沙圣霖   <[EMAIL PROTECTED]> wrote:

> I want to know that if the functoin "atoi" can be used like this :
>   atoi(a),
>   (a is a name of an array,and it is "char")
>   can it put out int a[]?

No it cannot.

Write a handler.

for( int i=0 ; i<count ; i++ ) {
        j[i] = atoi( cs[i] );
}

Most things in c have to be done this way, by most things I'm referring
to the language itself, there are many tool kits around which you can
either contribute to or implement to do such tasks.

The beauty of c is that regular functions are not encumbered by loops
that do things automagically and perhaps delay execution.

-- 
The bread crumbs to your cube is doing the twist because of Bernard
Shifman threatening to sue. Tech Support is deathmatching.
:: http://www.s5h.net/ :: http://www.s5h.net/gpg


[Non-text portions of this message have been removed]

Reply via email to