On Mon, 17 Feb 1997 darklord@koala.morningside.edu wrote:
> just for a minor test.. do ya know what a scanf() is ?
>
> Ohh.. does it exist and what library.. hahahah
>
> id check the circle code real good to see if you can find it.
Yes, I know what scanf() is. It's a function from the standard C
library, which scans stdin for a string fitting a particular format,
like those offered by printf. For instance:
int multi;
scanf("2x%d", &multi);
It also returns the number of arguments it matched with the format.
Furthermore, the behaviour of scanf/sscanf/fscanf can be mimiced
quite closely by using the va_start(), va_arg(), and va_end()
macros. Much like printf/sprintf/fprintf can be mimiced using
va_start(), vsprintf(), and va_end().
Now, what was the point?
--
Daniel Koepke
dkoepke@california.com
Forgive me father, for I am sin.
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://cspo.queensu.ca/~fletcher/Circle/list_faq.html |
| Or send 'info circle' to majordomo@cspo.queensu.ca |
+-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST