title: Declaring global char array in C header file
body: <p>I have a header file that contains all the string command as shown below:</p>
  
  <pre><code>const char AT_RSSI[] = "ATRSSI\r\n";
  const char AT_DEVICE_SECURITY[] = "ATDS";
  </code></pre>
  
  <p>But, using this method each of char sentence is appended with \0 at the end and this is inconvenient as I need to remove 1 char, each time I use the sizeof() method</p>
  
  <p>There is another solution is to use</p>
  
  <pre><code>//header file
  extern const char *AT_RSSI;
  
  //some.c
  const char *AT_RSSI = "ATRSSI\r\n";
  </code></pre>
  
  <p>and declare it in one of the .c file, but I do not like this approach. I want all my constant variable to be declared in the header file</p>
  
  <p>May I know how can I declare a constant global variable char array that can be included in various <strong>.c</strong> file?</p>