Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
that remains seperately as a different problem with your code because it doesn't handle every case properly
In your code, you attempt to allocate memory for the provided
char *IPv4
within the function, but it has already been pre-allocated prior to being passed to the function.you must write to the parameter
phnum
and return it, instead of allocating a string on the heapI added a note in the initial code
output = testing;
- it is not how output arguments work in C.Your solution is not entirely correct, it's not a kata issue.