By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,599 Members | 1,221 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,599 IT Pros & Developers. It's quick & easy.

free-format input

P: n/a
mdh
An example on p96 of K&R II shows how to use pointers. It's a function
called getint to perform "free-format input conversion".
Once again, sorry for the question...but what exactly is "free-format
input"? Is there "non-free format input". It is obviously significant,
else it would not have been mentioned.
Thanks in advance.

Nov 14 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On 13 Nov 2006 18:33:36 -0800, "mdh" <md**@comcast.netwrote in
comp.lang.c:
An example on p96 of K&R II shows how to use pointers. It's a function
called getint to perform "free-format input conversion".
Once again, sorry for the question...but what exactly is "free-format
input"? Is there "non-free format input". It is obviously significant,
else it would not have been mentioned.
Thanks in advance.
This is not exactly a C language specific question.

The opposite would be fixed format input conversion, for example a
program that only reads data from fixed columns, or in fixed formats.

An example of fixed format input might be a file containing:

+32.767
-16.383
+00.000

Where every line must contain a + or - sign in the first character,
followed by two digits, a decimal point, and three more digits. Any
deviation would be considered an input error and rejected.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Nov 14 '06 #2

P: n/a
mdh

Jack Klein wrote:
>
This is not exactly a C language specific question.

yes...I thougth so...but thanks for that.

Nov 14 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.