snipt

Ctrl+h for KB shortcuts

C

hello world to snipt

1
2
3
4
5
6
char * helloSnipt()
{
 char * output = calloc(11,sizeof(char));
 *output = "hello snipt";
 return output;
}
https://snipt.net/embed/2d8bf819ce7f138c41221997e6f2cc19/
/raw/2d8bf819ce7f138c41221997e6f2cc19/
2d8bf819ce7f138c41221997e6f2cc19
c
C
6
2019-06-18T15:39:13
True
False
False
/api/public/snipt/20267/
hello-world-to-snipt
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="kt">char</span> <span class="o">*</span> <span class="nf">helloSnipt</span><span class="p">()</span> </span><span id="L-2"><a name="L-2"></a><span class="p">{</span> </span><span id="L-3"><a name="L-3"></a> <span class="kt">char</span> <span class="o">*</span> <span class="n">output</span> <span class="o">=</span> <span class="n">calloc</span><span class="p">(</span><span class="mi">11</span><span class="p">,</span><span class="k">sizeof</span><span class="p">(</span><span class="kt">char</span><span class="p">));</span> </span><span id="L-4"><a name="L-4"></a> <span class="o">*</span><span class="n">output</span> <span class="o">=</span> <span class="s">&quot;hello snipt&quot;</span><span class="p">;</span> </span><span id="L-5"><a name="L-5"></a> <span class="k">return</span> <span class="n">output</span><span class="p">;</span> </span><span id="L-6"><a name="L-6"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
hello, snipt, world

PHP

hello snipt

1
2
3
<?
echo "Hello Snipt ;)";
?>
https://snipt.net/embed/ff280bb743d9ce70261e1e34052d34b0/
/raw/ff280bb743d9ce70261e1e34052d34b0/
ff280bb743d9ce70261e1e34052d34b0
php
PHP
3
2019-06-18T14:06:47
True
False
False
/api/public/snipt/9994/
hello-snipt-1
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="cp">&lt;?</span> </span><span id="L-2"><a name="L-2"></a><span class="k">echo</span> <span class="s2">&quot;Hello Snipt ;)&quot;</span><span class="p">;</span> </span><span id="L-3"><a name="L-3"></a><span class="cp">?&gt;</span><span class="x"></span> </span></pre></div> </td></tr></table>
echo, hello, php, snipt

Delphi

Hello snipt!

ShowMessage('Hello snipt!');
https://snipt.net/embed/5d0c2a3f60d8c8d648dff2e794fc666d/
/raw/5d0c2a3f60d8c8d648dff2e794fc666d/
5d0c2a3f60d8c8d648dff2e794fc666d
delphi
Delphi
1
2019-06-18T23:32:29
True
False
False
/api/public/snipt/3768/
hello-snipt
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="n">ShowMessage</span><span class="p">(</span><span class="s">&#39;Hello snipt!&#39;</span><span class="p">)</span><span class="o">;</span> </span></pre></div> </td></tr></table>
delphi, hello, message, pascal, show, showmessage, snipt