Search and Replace in GList



Hi,

I have a GList that contains many strings similar to [foo1, foo2,
foo3], that came from a file.
Due to many number of strings the variable contains, I would like to
create a function that
search "foo12345" and replace it with "newstring12345", then commit
again to the file.

I'm thinking the function would be like the following syntax.

GList* g_list_search_and_replace_data  (GList *list,  gpointer data,
gpointer user_data);

Can someone help?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]