Commit f724cfd1 authored by rswindell's avatar rswindell
Browse files

truncsp() is now part of xpdev/genwrap.c.

parent 9f3482e4
......@@ -86,19 +86,6 @@ char *faddrtoa(fidoaddr_t addr)
return(str);
}
/****************************************************************************/
/* Truncates white-space chars off end of 'str' */
/****************************************************************************/
void truncsp(char *str)
{
uint c;
c=strlen(str);
while(c && (uchar)str[c-1]<=' ') c--;
if(str[c]!=0)
str[c]=0;
}
char* DLLCALL strip_ctrl(char *str)
{
char tmp[1024];
......
......@@ -799,7 +799,6 @@ extern "C" {
DLLEXPORT int DLLCALL update_uldate(scfg_t* cfg, file_t* f);
/* str_util.c */
DLLEXPORT char * DLLCALL truncsp(char* str);
DLLEXPORT char * DLLCALL truncstr(char* str, const char* set);
DLLEXPORT char * DLLCALL ascii_str(uchar* str);
DLLEXPORT BOOL DLLCALL findstr(char *insearch, char *fname);
......
......@@ -128,8 +128,6 @@ void newline(void)
fprintf(statfp,"\n");
}
#include "truncsp.c"
/**************/
/* Exit Point */
/**************/
......
......@@ -165,8 +165,6 @@ ulong lf_expand(BYTE* inbuf, BYTE* outbuf)
return(j);
}
#include "truncsp.c"
/****************************************************************************/
/* Adds a new message to the message base */
/****************************************************************************/
......
......@@ -232,20 +232,6 @@ char* DLLCALL ultoac(ulong l, char *string)
return(string);
}
/****************************************************************************/
/* Truncates white-space chars off end of 'str' */
/****************************************************************************/
char* DLLCALL truncsp(char *str)
{
size_t c;
c=strlen(str);
while(c && (uchar)str[c-1]<=' ') c--;
if(str[c]!=0)
str[c]=0;
return(str);
}
/****************************************************************************/
/* Truncate string at first occurance of char in specified character set */
/****************************************************************************/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment