Logo Search packages:      
Sourcecode: wengophone version File versions  Download package

void osip_list_ofchar_free ( osip_list_t li  ) 

Free a list of element where elements are pointer to 'char'.

li The element to work on.

Definition at line 51 of file osip_list.c.

References osip_list_eol(), osip_list_get(), and osip_list_remove().

Referenced by sdp_media_free(), sdp_message_free(), and sdp_time_descr_free().

  int pos = 0;
  char *chain;

  if (li == NULL)
  while (!osip_list_eol (li, pos))
      chain = (char *) osip_list_get (li, pos);
      osip_list_remove (li, pos);
      osip_free (chain);
  osip_free (li);

Generated by  Doxygen 1.6.0   Back to index