diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/misc.c | 25 | ||||
| -rw-r--r-- | lib/misc.h | 1 | 
2 files changed, 0 insertions, 26 deletions
| @@ -61,31 +61,6 @@ void strip_linefeed(gchar *text)  	g_free(text2);  } -char *normalize(const char *s) -{ -	static char buf[BUF_LEN]; -	char *t, *u; -	int x = 0; - -	g_return_val_if_fail((s != NULL), NULL); - -	u = t = g_strdup(s); - -	strcpy(t, s); -	g_strdown(t); - -	while (*t && (x < BUF_LEN - 1)) { -		if (*t != ' ') { -			buf[x] = *t; -			x++; -		} -		t++; -	} -	buf[x] = '\0'; -	g_free(u); -	return buf; -} -  time_t get_time(int year, int month, int day, int hour, int min, int sec)  {  	struct tm tm; @@ -40,7 +40,6 @@ struct ns_srv_reply  G_MODULE_EXPORT void strip_linefeed( gchar *text );  G_MODULE_EXPORT char *add_cr( char *text );  G_MODULE_EXPORT char *strip_newlines(char *source); -G_MODULE_EXPORT char *normalize( const char *s );  G_MODULE_EXPORT time_t get_time( int year, int month, int day, int hour, int min, int sec );  double gettime( void ); | 
