X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fsupport.c;h=af155d31df92298178ab5e9c03a742be304fa133;hb=HEAD;hp=896797617c43b0f8c832621718d6d6cc627ea7f9;hpb=acfea2084c5b599e967ecbfdddd88e762b3b3179;p=citadel.git diff --git a/citadel/support.c b/citadel/support.c deleted file mode 100644 index 896797617..000000000 --- a/citadel/support.c +++ /dev/null @@ -1,225 +0,0 @@ -#include -#include -#include -#include -#include -#include "citadel.h" -#include "server.h" -#include "proto.h" - -/* - * struncmp() - case-insensitive version of strncmp() - * citadel.h will #define a strucmp() based on this - */ -int struncmp(char *lstr, char *rstr, int len) -{ - int pos = 0; - char lc,rc; - while (posrc) return(1); - pos=pos+1; - } - return(0); - } - - -/* - * strproc() - make a string 'nice' - */ -void strproc(char *string) -{ - int a; - - if (strlen(string)==0) return; - - /* Convert non-printable characters to blanks */ - for (a=0; a126) string[a]=32; - } - - /* Remove leading and trailing blanks */ - while( (string[0]<33) && (strlen(string)>0) ) - strcpy(string,&string[1]); - while( (string[strlen(string)-1]<33) && (strlen(string)>0) ) - string[strlen(string)-1]=0; - - /* Remove double blanks */ - for (a=0; a= n) { - strcpy(dest,""); - return; - } - strcpy(buf,source); - if ( (parmnum == 0) && (n == 1) ) { - strcpy(dest,buf); - for (n=0; n0) && (buf[0]!='|') ); - if (buf[0]=='|') strcpy(buf,&buf[1]); - for (count = 0; count