Use a constant for this, eg,
namespace {
  const char kWavHeader[] = "RIFF";
}

fwrite(kWavHeader, sizeof(kWavHeader[0]), sizeof(kWavHeader), stream)


Although, if you used a QFile, this would just be file.write(kWavHeader);