Reg.c
AberMUD/Reg.c · 877 B
From the archive AberMUD-5.30.0.tar.gz
Download the archive « Back to the archive contents
/****************************************************************************\
* *
* C R E A T O R O F L E G E N D S *
* (AberMud Version 5) *
* *
* The Creator Of Legends System is (C) Copyright 1989 Alan Cox, All Rights *
* Reserved. *
* *
\****************************************************************************/
#include "System.h"
int main(int argc,char *argv[])
{
short ct=1;
UFF u;
while(argv[ct])
{
int pos;
if((pos=LoadPersona(argv[ct],&u))==-1)
printf("%s: Not found.\n",argv[ct]);
else
{
u.uff_Flag[9]=1;
printf("%s: Registered.\n",argv[ct]);
SavePersona(&u,pos);
}
ct++;
}
exit(0);
}
void Log(char *x, ...){;}
void ErrFunc(char *x, char *y, char *z, int a, char *b)
{
fprintf(stderr,"%s %s %s %d %s\n",x,y,z,a,b);
exit(1);
}