Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char *kkey = malloc((strlen(key)+1) * sizeof(char));
- char *vvalue = malloc((strlen(key)+1) * sizeof(char));
- strcpy(kkey, key);
- strcpy(vvalue, value);
- map->keys[k] = kkey;
- map->values[k] = vvalue;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement