title: Initialize static structure
body: <p>I have the following structure:</p>
  
  <pre><code>typedef struct
  {
      uint8* buffer;
      uint32 bufferLength;
  } SRequest;
  </code></pre>
  
  <p>and a function:</p>
  
  <pre><code>void somefunction(const SRequest* request)
  {
      //The following initialization of the pointer to static structure is not working
      static SRequest* request_ptr = {.buffer = request-&gt;buffer, 
                                      .bufferLength = 0};
      .
      .
  }
  </code></pre>
  
  <p>Is there another way I can initialize the request_ptr?</p>