The ft_strdup function is going to be a frequently used function in your arsenal which is why it's part of the 42 exam library as well as being included in a student's own library.
The link to the helper program: https://pythontutor.com/visualize.htm...
Be sure to check the dropdown once there because there's a few other supported languages you can use for testing.
Follow me on Github: https://github.com/csphilli