Merge pull request #432 from sykhro/master

Fix the sfload_mem example to actually read back the pointer address
This commit is contained in:
Tom M 2018-09-20 20:12:10 +02:00 committed by GitHub
commit 6518367e00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,14 +19,13 @@ void *my_open(const char *filename)
return NULL; return NULL;
} }
scanf("&%p", &p); sscanf(filename, "&%p", &p);
return p; return p;
} }
int my_read(void *buf, int count, void *handle) int my_read(void *buf, int count, void *handle)
{ {
// not yet implemented // NYI
memset(buf, 0, count);
return FLUID_OK; return FLUID_OK;
} }