From: "Deshpande Bansidhar(IFIN DC AI)" <Bansidhar.Deshpande@infineon.com>
To: "'gcc-help@gcc.gnu.org'" <gcc-help@gcc.gnu.org>
Subject: atoi() check
Date: Wed, 28 Jan 2004 06:16:00 -0000 [thread overview]
Message-ID: <0C674B14EAEBD61196D900B0D03DB49F01765446@blrw502w.blr.infineon.com> (raw)
Hi all
I have following code.
I want to add error handler for atoi() function.
E.g.
char *ch;
int num;
/*Read ch here*/
Num = atoi(ch);
But before calling atoi I want to make sure that ch is pointing to numberic
string.
How should I do this. I can manually write some function to check this. But
is there
Any library function inbuilt to achieve the same ?
Thanks & regards,
Bansidhar A. Deshpande
Software Engineer
Infineon Technologies India Pvt. Ltd.
Discoverer Building.
I.T.P.L., White Field Road,
Bangalore -560066
Phone: +91-80-51392011 Extn : 2066
Fax: +91-80-8410012
*Disclaimer*
This e-mail and any attachments are confidential and may be subject to legal
or some other professional privilege. They are intended solely for the
attention and use of the named addressee(s). They must not be disclosed to
any person without authorization. This e-mail and any attachments are also
subject to copyright. They may only be copied or distributed with the
consent of the copyright owner. If you are not a named addressee you must
not use, disclose, retain or reproduce all or any part of the information
contained in this e-mail or any attachments. If you have received this email
by mistake please notify the sender immediately by return email and delete
or destroy all copies of the email. Any confidentiality, privilege or
copyright is not waived or lost because this email has been sent to you by
mistake.
next reply other threads:[~2004-01-28 6:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-28 6:16 Deshpande Bansidhar(IFIN DC AI) [this message]
2004-01-28 21:46 ` Liguo Song
2004-01-28 23:02 ` Ishwar Rattan
2004-01-28 13:43 Assinovsky, Lev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0C674B14EAEBD61196D900B0D03DB49F01765446@blrw502w.blr.infineon.com \
--to=bansidhar.deshpande@infineon.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).