home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a120 / 1.ddi / WATCOM_C / WAT157.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-11  |  492 b   |  20 lines

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat157.c                                             */
  3. /*------------------------------------------------------------------*/
  4. #include <stdio.h>
  5.  
  6. char *buffer = "3.14159 A 12 COMPUTER\n";
  7.  
  8. void main()
  9. {
  10.  
  11.      float f;
  12.      char character;
  13.      int i;
  14.      char string[20];
  15.  
  16.      sscanf(buffer,"%f %c %d %s",&f,&character,&i,string);
  17.      printf("%f %c %d %s",f,character,i,string);
  18.  
  19. }
  20.