the alternative to a fixed struct is to have a format that can be read sequentially, something like what anduril suggested. a few fixed fields, then variable length strings that you find by reading...
Type: Posts; User: dmh2000
the alternative to a fixed struct is to have a format that can be read sequentially, something like what anduril suggested. a few fixed fields, then variable length strings that you find by reading...
ptr = ptr + strlen(_name);
memcpy(ptr, &counter, sizeof(u_short));
if the length of _name is less than the allocated size (100) in the struct , then this will write counter and datalen at the...