I'm trying to replce some letter with the below code.
But, the result shows "ANULL" not "A"... How can I remove the NULL space...
ps. I'm modifying binary file information.
char *pos = NULL;
if(NULL != (posFind = strstr(fp, "AB");
strncpy(&fp->base[0], "A", 2);
if(_fseek64(fp, 0, SEEK_SET)!= 0) return ZD_ERROR_IO_FAILED;
fwrite(&fp->base[0], 2, 1, fp);