Hey everyone,
I need to read in wav files for a program I'm working on.. If someone could post an example of opening a binary file with read permissions, and creating a buffer to store the whole file in (they are quite small) I would very much appreciate it.
Thanks a lot,
Eric
thanks... I figured it out.. Good suggestions..
I used
void** myArray;
myarray = malloc(sizeof (void*) * 50); //works great
I use a constuctor like function to create new arrayObject and create memory (above) for it's array of stuff..
Thanks a lot again for the help.
One thing...
Hey guys,
I've come across quite the annoying bug in my code..
I working with a butch of "Classes" I made in C, made up of structures with data and pointers to functions. Everything is working great, but I'm having one problem with dynamically allocating an Array for an object...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.