Skip to content
Snippets Groups Projects
Commit 5accc69e authored by rswindell's avatar rswindell
Browse files

Created new subject_crc() function that replaces the old remove_re() function.

parent 21a97670
No related branches found
No related tags found
No related merge requests found
......@@ -778,7 +778,7 @@ extern "C" {
DLLEXPORT ushort DLLCALL crc16(char *str);
DLLEXPORT BOOL DLLCALL validattr(char a);
DLLEXPORT size_t DLLCALL strip_invalid_attr(char *str);
DLLEXPORT ushort DLLCALL subject_crc(char *subj);
/* date_str.c */
DLLEXPORT char * DLLCALL zonestr(short zone);
......@@ -904,9 +904,6 @@ BOOL md(char *path);
int eprintf(char *fmt, ...); /* event log */
int lputs(char *); /* telnet log */
/* qwk.cpp */
void remove_re(char *str);
/* ver.cpp */
char* socklib_version(char* str);
......
......@@ -448,3 +448,18 @@ size_t DLLCALL strip_invalid_attr(char *strin)
strcpy(strin,str);
return(a);
}
ushort DLLCALL subject_crc(char *subj)
{
char str[512];
while(!strnicmp(subj,"RE:",3)) {
subj+=3;
while(*subj==SP)
subj++;
}
SAFECOPY(str,subj);
strlwr(str);
return(crc16(str));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment