Hi guys, this is my first post!
I like programming C and I like to find here a lot of friends!
I've done a program that read a midi file and from its hex code, program obtains feature (tracks,formats,instrument...).
Now I've got a problem with fread().
If hex code is 4D54, my program set (so read) in array: 544D and so print: "Print fread: 544D". I need my program reads correct code and not contrary.
short int data;
fp = fopen("formato.mid","r");
printf("Print fread buf: %x\n",data[i]);
Do you know how could I solve it and why happens?