Use common definition for remove_char

This commit is contained in:
Kp 2014-08-23 16:27:28 +00:00
parent eefdce5b04
commit 6a475c7d0e
2 changed files with 6 additions and 14 deletions

View file

@ -136,13 +136,6 @@ int linenum;
const char space[3] = " \t";
const char equal_space[4] = " \t=";
void remove_char( char * s, char c )
{
char *p;
p = strchr(s,c);
if (p) *p = '\0';
}
//---------------------------------------------------------------
int compute_average_pixel(grs_bitmap *n)
{

View file

@ -1654,6 +1654,12 @@ void piggy_close()
#endif
}
void remove_char( char * s, char c )
{
char *p = strchr(s,c);
if (p) *p = '\0';
}
#if defined(DXX_BUILD_DESCENT_II)
#ifdef EDITOR
static int piggy_does_bitmap_exist_slow(const char * name )
@ -1929,13 +1935,6 @@ static void bm_read_d1_tmap_nums(PHYSFS_file *d1pig)
}
}
void remove_char( char * s, char c )
{
char *p;
p = strchr(s,c);
if (p) *p = '\0';
}
const char space[3] = " \t";
const char equal_space[4] = " \t=";