title: how to solve the c warning :pointer from integer without a cast?
body: <p>warning :  passing argument 2 of ‘memcpy’ makes pointer from integer without a cast [enabled by default]</p>
  
  <pre><code>uint8 InterruptLatency;
  char buf[256];
  int kernelinterrupt time()
  {
      fscanf(fp, "%"SCNu8"\n", &amp;InterruptLatency);  // I am reading the data from kernel which is not shown here
    memcpy(buf, InterruptLatency, sizeof(InterruptLatency));   // warning here as above
  
      // after storing it in buffer I am sending the data from but to another layer
  }
  </code></pre>