?
=?iso-8859-1?q?Luiz_Antonio_Gomes_Pican=E7o?=
I have this structure:
struct some
{
int version;
char signature[3];
} some2
void main()
{
some2.version = 1;
strcpy(some2, "ihs");
}
the question is:
The signature member length is 3, but when i copy the "ihs" string to
it, the data is "ihs\0"; If i save this structure to disk, this member
will get 4 bytes. How can i avoid this ??? Thanks.
struct some
{
int version;
char signature[3];
} some2
void main()
{
some2.version = 1;
strcpy(some2, "ihs");
}
the question is:
The signature member length is 3, but when i copy the "ihs" string to
it, the data is "ihs\0"; If i save this structure to disk, this member
will get 4 bytes. How can i avoid this ??? Thanks.