title: pushing multiple variable values in buffer
body: <pre><code>    void char() {
      char buff[50];
      int l;
      int i = 0;
      i = sprintf(buff,a,b,c);
      for(i=0,i&lt;=l,l++)
      serial.println(buff);
      }
  </code></pre>
  
  <p>I want to have a buffer that will be printed like #123#234#</p>
  
  <pre><code>a=123
  b=234
  </code></pre>
  
  <p>is it the correct way to do that? I tried but I didn't get any output. Probably silly mistake.</p>
  
  <p>EDIT:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  void abc() {
      int a = 123;
      int b = 234;
      char buff[50];
      int l;
      int i = 0;
      l = sprintf(buff,"#%d#%d#",a,b);
      for(i=0;i&lt;=l;l++);
      printf("%s", buff);
      //return buff;
      //serial.println(buff);
      }
  int main() {
  //char bhg = abc();
  //printf("&amp;d", bhg);
  abc();
  }
  </code></pre>
  
  <p>I tried with this.Working properly but taking time to give output. Can I make it fast? Probably it is trying to iterate through that char[50] for allocation.</p>