char * myqttd_base_dir ( const char *  path)

Allows to get the base dir associated to the provided path.

Parameters
pathThe path that is required to return its base part.
Returns
Returns the base dir associated to the function. You must deallocate the returning value with axl_free.