char *address;
char *phone;
char *phone2;
- char *email;
};
int newfinger = 0;
#define sqlfail() (sqlca.sqlcode && sqlca.sqlcode != 1403)
-#define SQL_DUPLICATE 1422
+#define SQL_DUPLICATE -2112
main(argc, argv)
FILE *in;
{
static struct entry e;
- static char buf[BUFSIZ], mid[16], eid[16], email[256];
+ static char buf[BUFSIZ], mid[16], eid[16];
static char name[LEN_NAME+1], sname[LEN_NAME+1], id[LEN_ID+1];
static char office[LEN_OFFICE+1], phone[LEN_PHONE+1], phone2[LEN_PHONE2+1];
static char dept[LEN_DEPT+1], title[LEN_TITLE+1], username[LEN_USERNAME+1];
if (substr(e.title, "PROF") || substr(e.title, "LECTURE"))
e.class = "FACULTY";
- strcpy(email, strtrim(username));
- if (host[0] == '@')
- strncat(email, strtrim(host));
- e.email = email;
-
return(&e);
}