char* tsmNameFromPathname ( char *pathname ) Extract the filename from a path
Extract the filename from a path.This routine returns the last part of a pathname, i.e. the filename or last directory name. If the pathname ends with a '/', then this is ignored. The function will always return a valid string - this will be empty if an error occurred. This string should be freed when finished with.