Apendice 1-7 (Interface.c)

#include #include #include #include #include void Checa(); DBPROCESS *dbproc; LOGINREC *login; void main(argc,argv) int argc; char *argv[]; { if(dbinit()==FAIL) exit(ERREXIT); login=dblogin(); DBSETLUSER(login,"edgar"); DBSETLPWD(login,"x91892"); DBSETLAPP(login,"Proyecto"); dbproc=dbopen(login,NULL); ChecarPassword(dbproc,argc,argv); dbexit(); } /*-------------------------------------------------------------*/ ChecarPassword(dbproc,argc, argv) DBPROCESS *dbproc; int argc; char *argv[]; { char data[50]; char tmp[50]; int i; strcpy(tmp,argv[1]); for(i=1; i 2) { for(i=2; i