X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fsupport.c;h=af155d31df92298178ab5e9c03a742be304fa133;hb=HEAD;hp=855c9ad4c3712fb596c51bc474592534f98fcbf5;hpb=0f1554610c1719ad2da1da874714b5327e38e890;p=citadel.git diff --git a/citadel/support.c b/citadel/support.c deleted file mode 100644 index 855c9ad4c..000000000 --- a/citadel/support.c +++ /dev/null @@ -1,140 +0,0 @@ -/* - * $Id$ - * - * Server-side utility functions - * - */ - -#ifdef DLL_EXPORT -#define IN_LIBCIT -#endif - -#include "sysdep.h" -#include -#include -#include -#include -#include -#include -#include -#include "citadel.h" -#include "server.h" -#include "support.h" - - -/* - * strproc() - make a string 'nice' - */ -void strproc(char *string) -{ - int a; - - if (string == NULL) return; - 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