PREV INDEX NEXT

Author: Unknown
Subject: Allocating memory for strings in nine20
Date: Sunday, 12 Apr 2020, 00:28:52

In the algorithm provided (to add triples/strings to hashtable/queue), we are supposed to add P' each time to the queue, but to do this, we have to allocate a new string to store P'. Currently in my for loop, when I allocate memory, I am losing a lot because I am overriding the string each time. I am confused how to go about fixing this though. How do i make sure that each time I go through this for loop, I can allocate the correct amount of memory for P' each time.
PREV INDEX NEXT