I am trying to return a pointer to my structure from a function:
dbentry* FileReader::parseTrack(int32_t size, char *buffer) {
dbentry* track;
int cursor = 0;
//parse relevant parts
track.title = this->getFieldForMarker(cursor, size, "tsng" , buffer);
return track;
}
setting title is obviously not working but i don't know what to do, also how would i read a value from the pointer, ive tried some casting but nothing seems to work, most of what i found i couldn't figure out how to apply, or it was for C.