home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / c / other / learn / argv1.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-10-07  |  283 b   |  18 lines

  1. /* ARGV1.C: Demonstrate null pointers. */
  2.  
  3. #include <stdio.h>
  4.  
  5. void show_args( char *argument );
  6.  
  7. int main( int argc, char **argv )
  8. {
  9.    while( *argv )
  10.       show_args( *(argv++) );
  11.    return 0;
  12. }
  13.  
  14. void show_args( char *argument )
  15. {
  16.    printf( "%s\n", argument );
  17. }
  18.