mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
Replace strarray_length with g_strv_length
This commit is contained in:
parent
72712a0c62
commit
7a3c6fe86c
9 changed files with 7 additions and 23 deletions
|
|
@ -150,20 +150,6 @@ int find_substr(const char *list, const char *item)
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
int strarray_length(char **array)
|
||||
{
|
||||
int len;
|
||||
|
||||
g_return_val_if_fail(array != NULL, 0);
|
||||
|
||||
len = 0;
|
||||
while (*array) {
|
||||
len++;
|
||||
array++;
|
||||
}
|
||||
return len;
|
||||
}
|
||||
|
||||
int strarray_find(char **array, const char *item)
|
||||
{
|
||||
char **tmp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue