home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / stdio / doscan.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  664 b   |  33 lines

  1. @node _doscan, stdio
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <stdio.h>
  6.  
  7. int _doscan(FILE *file, const char *format, void **ptrs_to_args);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This is an internal function that is used by all the @code{scanf} style
  13. functions, which simply pass their format, arguments, and stream to this
  14. function. 
  15.  
  16. @xref{scanf} for a discussion of the allowed formats and arguments. 
  17.  
  18. @subheading Return Value
  19.  
  20. The number of characters successfully scanned is returned, or -1 on
  21. error. 
  22.  
  23. @subheading Example
  24.  
  25. @example
  26. int x, y;
  27. int *args[2];
  28. args[0] = &x;
  29. args[1] = &y;
  30. _doscan(stdin, "%d %d", args);
  31. @end example
  32.  
  33.