cscanf man page on Xenix

Man page or keyword search:  
man Server   1130 pages
apropos Keyword Search (all sections)
Output format
Xenix logo
[printable version]



     CSCANF(DOS)	      XENIX System V		   CSCANF(DOS)

     Name
	  cscanf - Converts and formats console input.

     Syntax
	  #include <conio.h>

	  int cscanf (format[ arg... ]);
	  char *format;

     Description
	  The cscanf function reads data directly from the console
	  into the locations given by the arguments (if any), using
	  the getche function to read characters.  Each argument must
	  be a pointer to a variable with a type that corresponds to a
	  type specifier in the format.	 The format controls the
	  interpretation of the input fields and has the same form and
	  function as the format argument for the scanf function.

     Return Value
	  cscanf returns the number of fields that were successfully
	  converted and assigned.  The return value does not include
	  fields which were read but not assigned.

	  The return value is EOF for an attempt to read at end-of-
	  file.	 A return value of 0 means that no fields were
	  assigned.

     See Also
	  fscanf(S), scanf(S), sscanf(S)

     Example
	  #include <conio.h>

	  int result; char buffer[20];
	    .
	    .
	    .  cprintf ("Please enter file name: ");

	  /* The following statement stores string input ** from the
	  keyboard.  */

	  result = cscanf ("%19s",buffer);

	  /* Result is the number of correctly matched input **
	  fields. It is zero if none could be matched.	*/

     Notes
	  This call must be compiled with the -dos flag.

     Page 1					      (printed 8/7/87)

[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Xenix

List of man pages available for Xenix

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net