- Timestamp:
- Mar 24, 2011, 4:05:29 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.8, release-1.9
- Children:
- c809f5e
- Parents:
- e56303f
- git-author:
- David Benjamin <davidben@mit.edu> (03/08/11 15:04:52)
- git-committer:
- David Benjamin <davidben@mit.edu> (03/24/11 16:05:29)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dict.c
rd4927a7 rf25df21 58 58 } 59 59 60 /* creates a list and fills it in with keys. duplicates the keys,60 /* Appends dictionary keys to a list. Duplicates the keys, 61 61 * so they will need to be freed by the caller. */ 62 62 int owl_dict_get_keys(const owl_dict *d, owl_list *l) { 63 63 int i; 64 64 char *dupk; 65 if (owl_list_create(l)) return(-1);66 65 for (i=0; i<d->size; i++) { 67 66 if ((dupk = g_strdup(d->els[i].k)) == NULL) return(-1);
Note: See TracChangeset
for help on using the changeset viewer.