Question: (10pt) (Strings] Implement void split str(char *s, char **pk, char **pv); which takes a string s in the form of key:value and dynamically creates two
![(10pt) (Strings] Implement void split str(char *s, char **pk, char **pv);](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f578d47ea14_28466f578d4202ff.jpg)

(10pt) (Strings] Implement void split str(char *s, char **pk, char **pv); which takes a string s in the form of "key:value" and dynamically creates two new strings "key" and "value" whose references will be returned through pk and pv. If the string s does not contain 'or memory allocations fail, make sure you return NULL through pk and pv For example, after char *k, *v split_str ("abed:klm", &k, &v) k points to "abed" and v points to "klm" After char *k, *v split_str ("myKeymyValue", &k,&v) k is NULL and vs NULL /* give your solution to this problem in the next page /
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
