Removed trim method from util
This commit is contained in:
10
util.c
10
util.c
@@ -25,8 +25,6 @@
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
void get_time(char *thetime)
|
||||
{
|
||||
time_t rawtime;
|
||||
@@ -38,14 +36,6 @@ void get_time(char *thetime)
|
||||
strftime(thetime, 80, "%H:%M", timeinfo);
|
||||
}
|
||||
|
||||
char *trim(char *str)
|
||||
{
|
||||
if (str == NULL)
|
||||
return NULL;
|
||||
|
||||
return g_strstrip(str);
|
||||
}
|
||||
|
||||
char * str_replace (const char *string, const char *substr,
|
||||
const char *replacement) {
|
||||
char *tok = NULL;
|
||||
|
||||
Reference in New Issue
Block a user