用子进程设口令

Author: 广东 林志钢 Date: 1994-08-19

        SECURE.C
        #include <stdio.h>
        #include <process.h>
        #include <string.h>
        main(argc,argv,envp)
        int argc;
        char *argv;
        char *envp;
        {
        char pass ="pctools";
          char password;
          FILE *fp;
          printf("PLEASE INPUT YOUR PASSWORD:\n");
          scanf("%s",password);
          if (strncmp(pass,password,3)==0)                          spawnlpe(P_WAIT,"pct.dat","pct",NULL,envp);
        else
        printf("You are an illegle user!\n");
        }
        (广东 林志钢)