Fixed segmentation fault by clarifying pointer of pointer

This commit is contained in:
_
2018-04-23 17:43:04 -07:00
parent 046e1f8617
commit 9a14430a88
6 changed files with 12 additions and 12 deletions

View File

@@ -86,7 +86,7 @@ typedef struct {
void (* const printcoordinate)(struct Coordinate*, unsigned int);
// input: pointer to struct, file data
bool (* const getheader) (struct Header*, const char*);
bool (* const getheader) (struct Header**, const char*);
// input: pointer of pointer to struct, order, file data
// ** = 'pass by reference' of a pointer to struct

View File

@@ -46,7 +46,7 @@ typedef struct {
void (* const printbatchdesc)(struct TextureBatchDescriptor*);
// input: pointer to struct, file data
bool (* const getheader) (struct TexturePack*, const char*);
bool (* const getheader) (struct TexturePack**, const char*);
// input: pointer of pointer to struct, order, file data, file size
// ** = 'pass by reference' of a pointer to struct