src/identity_list.c
changeset 230 5b36a2663539
parent 125 5119178815d8
child 274 892d07b825f6
     1.1 --- a/src/identity_list.c	Thu Apr 23 18:00:45 2015 +0200
     1.2 +++ b/src/identity_list.c	Thu Apr 30 19:01:58 2015 +0200
     1.3 @@ -67,3 +67,12 @@
     1.4      }
     1.5  }
     1.6  
     1.7 +DYNAMIC_API int identity_list_length(const identity_list *id_list)
     1.8 +{
     1.9 +    int len = 0;
    1.10 +
    1.11 +    for (; id_list && id_list->ident; id_list = id_list->next)
    1.12 +        ++len;
    1.13 +
    1.14 +    return len;
    1.15 +}