home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / unixlib36d / test / c / cwdtest < prev    next >
Encoding:
Text File  |  1994-03-08  |  260 b   |  22 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. #include "unistd.h"
  5.  
  6. #include "sys/param.h"
  7.  
  8. int
  9. main ()
  10. {
  11.   char b[MAXPATHLEN];
  12.  
  13.   if (!(getcwd (b, MAXPATHLEN)))
  14.     {
  15.       perror ("cwdtest");
  16.       exit (1);
  17.     }
  18.   puts (b);
  19.   puts (__uname (b, 0));
  20.   return 0;
  21. }
  22.