Validating Data in C programming

E

Eric Sosman

gurdz said:
Hi, thanks for the response, and yes, I am looking for what you are
talking about. Can you please give me an example code to validate what
you mentioned above. I have been looking for exactly what you are
talking about, but no matter how I search Google or any other search
engine for that matter, I am unable to find the appropriate result. I
hope that you could please help me out.

Some of the tests will depend on how you are obtaining
the input. Are you reading it from a file, or from an
interactive source, or getting it from the command-line
arguments, or what?

Suggestion: Just ignore the issue of validation (for the
moment; this is temporary) and write the program as if all
inputs were always trustworthy. Show us what you've written,
and people will suggest how you could fit some validation into
that framework.
 
O

osmium

:

Hi, thanks for the response, and yes, I am looking for what you are
talking about. Can you please give me an example code to validate what
you mentioned above. I have been looking for exactly what you are
talking about, but no matter how I search Google or any other search
engine for that matter, I am unable to find the appropriate result. I
hope that you could please help me out.

Try Google groups instead of plain vanilla google.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top