home *** CD-ROM | disk | FTP | other *** search
- /*------------------------------------------------------------------*/
- /* ╡{ªí└╔ªW║┘: wat26.c */
- /*------------------------------------------------------------------*/
- #include <sys\stat.h>
- #include <stdio.h>
- #include <io.h>
-
- void readwrite(char *filename)
- {
- int status;
-
- status = chmod(filename, S_IREAD|S_IWRITE);
- if (status)
- printf("º┌¡╠╡L¬k▒N└╔«╫ %s │]⌐wª¿Ñi┼¬ÑBÑi╝g\n", filename);
- else
- printf("º┌¡╠ñw▒N└╔«╫ %s │]⌐wª¿Ñi┼¬ÑBÑi╝g\n", filename);
- }
-
- void main()
- {
- readwrite("MIRROR.FIL");
- readwrite("MIRROR.BAK");
- }
-