私はいくつかのコードを手に入れました、そして私はファイル内のバイトを見つけて置き換えるようにそれを改善したいので、FILE内のすべてのorigbytesを見つけてからそれをnewbytesに置き換えてからファイルを保存したいです文字のバイト?
 FILE* file;
 file = fopen("/Users/Awesome/Desktop/test", "r+b");
 int size = sizeof(file)+1;
 char bytes [size];
 fgets(bytes, size, file);
 for (int i=0; i<size; i++){ 
     char origbytes  []  = {0x00, 0x00};
     char newbytes   []  = {0x11, 0x11};
     if (strcmp(bytes[i], origbytes)) //Here the problem
     {
         fseek(file, i, SEEK_SET);
         fwrite(newbytes, sizeof(newbytes), 1, file);
     }
 }
 fclose(file);