Original Post
Im a beginner C programmer, and I was wondering this. Suppose you had a statement that found the length of a string pointed to by the return value from another function. Like this: int material_data_length = strlen(ParseSvTag(temp.value, "\"", "mesh {")); ParseSvTag() returns a pointer to a string that was allocated using malloc(). So my question is what happens to the memory pointed to by the return value of ParseSvTag? Is it lost? Thank you.