Fread fwrite problem with two-dimensional char?

Your kra variable is an array of pointers that you are then assigning to two constant strings The sizeof() call will give you the size of the pointer (presumably you're on a 32 bit machine, and so this is 4 bytes). You need to use strlen( kra0 ) to write the whole length of the string to the file.

Your kra variable is an array of pointers that you are then assigning to two constant strings. The sizeof() call will give you the size of the pointer (presumably you're on a 32 bit machine, and so this is 4 bytes). You need to use strlen( kra0 ) to write the whole length of the string to the file.

H=sizeof(kra0); fwrite(&h,sizeof(int),1,po); must be changed to const char * h = kra0; fwrite(h, strlen(h), 1 po) The same for kra1.

Use strlen rather than sizeof, here is a good sumup.

And GSL_EFAILED if there was a problem writing to the file. Between different architectures. Stream in binary format.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions