home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1350 / endpwent.c next >
C/C++ Source or Header  |  1990-12-28  |  319b  |  27 lines

  1. /*
  2.  *      endpwent.c: Close password file
  3.  *
  4.  *      Stephen C. Trier
  5.  *      March 26, 1990
  6.  *
  7.  *      This program is in the public domain
  8.  *
  9.  */
  10.  
  11. #include <stdio.h>
  12. #include <pwd.h>
  13.  
  14. extern FILE *_pw_file;
  15.  
  16. int endpwent(void)
  17. {
  18.     int temp;
  19.  
  20.     temp = fclose(_pw_file);
  21.     _pw_file = NULL;
  22.  
  23.     return temp;
  24. }
  25.  
  26.  
  27.