Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since:
Apr 2017
Last Sign in:
103 Weeks Ago, 3 Days Ago
Questions Answered:
4870
Tutorials Posted:
4863
Education
MBA IT, Mater in Science and Technology
Devry Jul-1996 - Jul-2000
Experience
Professor
Devry University Mar-2010 - Oct-2016
Category > ProgrammingPosted 25 May 2017My Price9.00
struct DirEntryName {
I have two structs:
Â
struct DirEntryName {
  char* name_;
  struct DirEntryName* nextPtr_;
};
Â
Â
structPathName {
  int isRoot_;
  int isMyHome_;
  int isSomeonesHome_;
  struct DirEntryName*dirEntryNamePtr_;
};
Â
I need to 'free()' the memory of 'pathNamePtr' via all DirEntryName 'name_' and 'nextPtr_' member vars, and the memory of 'pathNamePtr' itself, in the following method: