This seems to have resolved the cast warning above:
WAV_HDR loadWavFile(WAV_HDR *wav_p, FILE *filename)
{
WAV_HDR *wav;
BYTE *dataBuffer = malloc(sizeof(BYTE) *...
Type: Posts; User: lex2012
This seems to have resolved the cast warning above:
WAV_HDR loadWavFile(WAV_HDR *wav_p, FILE *filename)
{
WAV_HDR *wav;
BYTE *dataBuffer = malloc(sizeof(BYTE) *...
Thanks Salem- the segmentation 11 fault disappeared after updating the dynamic memory assignment to the struct - i.e.: WAV_HDR *wav = malloc(sizeof(WAV_HDR));
I have a void data type in my...
Thanks Salem.. much appreciated. Have made progress and worked through the warnings http://im.cprogramming.com/images/smilies/smile.png- so am just left with the segmentation 11 fault - that displays...
Thanks Salem /Nonoob.. Salem in answer to your questions... yes -there were warnings - which i was going to work through after the error, and my code compiled and ran up to the loadWavFile(wav, &fp);...
Hi - thanks for the very quick response - I am new to C.. so am learning all the time. The program initialises a struct and reads the data from a wav file (following error checking). The next step...
oops!! apologies - I didn't meant to post without the code (cllcked by mistake). Here is the related code up to where struct pointer is first called by fread:
WAV_HDR loadWavFile(WAV_HDR *wav_p,...
Hi All - have researched this error for several days and tried different ways of referencing the struct pointer - though just leads to the same error. Debugging via gdb returns the following error:
...