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

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat26.c                                              */
  3. /*------------------------------------------------------------------*/
  4. #include <sys\stat.h>
  5. #include <stdio.h>
  6. #include <io.h>
  7.  
  8. void readwrite(char *filename)
  9. {
  10.    int status;
  11.  
  12.    status = chmod(filename, S_IREAD|S_IWRITE);
  13.    if (status)
  14.       printf("º┌¡╠╡L¬k▒N└╔«╫ %s │]⌐wª¿Ñi┼¬ÑBÑi╝g\n", filename);
  15.    else
  16.       printf("º┌¡╠ñw▒N└╔«╫ %s │]⌐wª¿Ñi┼¬ÑBÑi╝g\n", filename);
  17. }
  18.  
  19. void main()
  20. {
  21.    readwrite("MIRROR.FIL");
  22.    readwrite("MIRROR.BAK");
  23. }
  24.  
  25.