X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fsupport.c;h=af155d31df92298178ab5e9c03a742be304fa133;hb=HEAD;hp=b88ee9913348548835477a6ed4048b19172ba058;hpb=a2a06e5d6767d0e45eeccf4032153764e8a5520f;p=citadel.git diff --git a/citadel/support.c b/citadel/support.c deleted file mode 100644 index b88ee9913..000000000 --- a/citadel/support.c +++ /dev/null @@ -1,135 +0,0 @@ -/* - * $Id$ - * - * Server-side utility functions - * - */ - -#include "sysdep.h" -#include -#include -#include -#include -#include -#include -#include -#include "citadel.h" -#include "server.h" -#include "support.h" -#include "tools.h" - -/* - * strproc() - make a string 'nice' - */ -void strproc(char *string) -{ - int a; - - if (string == NULL) return; - if (IsEmptyStr(string)) return; - - /* Convert non-printable characters to blanks */ - for (a=0; a126) string[a]=32; - } - - /* Remove leading and trailing blanks */ - while( (string[0]<33) && (!IsEmptyStr(string)) ) - strcpy(string,&string[1]); - while( (string[strlen(string)-1]<33) && (!IsEmptyStr(string)) ) - string[strlen(string)-1]=0; - - /* Remove double blanks */ - for (a=0; a