用子进程设口令
#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");
}
(广东 林志钢)