home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / c / 12537 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  1.1 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!caen!hellgate.utah.edu!cc.usu.edu!cc.usu.edu!randy
  2. From: randy@pippin.ee.usu.edu (Randy Ray West)
  3. Newsgroups: comp.lang.c
  4. Subject: Need getwd() function -- HELP!
  5. Message-ID: <RANDY.92Aug19150306@pippin.ee.usu.edu>
  6. Date: 19 Aug 92 22:03:06 GMT
  7. Article-I.D.: pippin.RANDY.92Aug19150306
  8. Distribution: comp.lang.c
  9. Organization: Utah State University Dept EE Logan, Utah
  10. Lines: 20
  11. Nntp-Posting-Host: pippin.ee.usu.edu
  12.  
  13.  
  14. The system that I am working on (Sun Unix Workstation) doesn't have a
  15. C library function that will return the current working directory.  I
  16. believe the function I'm after is getwd().
  17.  
  18. char *getwd(pathname)
  19. char pathname[MAXPATHLEN]
  20.  
  21. It is supposed to be in #include<sys/param.h> but isn't on my system.
  22.  
  23. Any help would be appreciated.  Please email me.
  24. --
  25. -----------------------------------------------------------------------------
  26. Randy R West         (randy@pippin.ee.usu.edu)
  27. Space Dynamics Laboratory\Utah State University
  28. Logan, Utah
  29.  
  30. DISCLAIMER:
  31. My opinions and/or statements do not necessarily represent my employer's.
  32. _____________________________________________________________________________
  33.