<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mumbling Archives - Onestring Lab</title>
	<atom:link href="https://onestringlab.com/tag/mumbling/feed/" rel="self" type="application/rss+xml" />
	<link>https://onestringlab.com/tag/mumbling/</link>
	<description>Kode Kreativitas Kopi</description>
	<lastBuildDate>Mon, 04 May 2026 08:38:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://onestringlab.com/wp-content/uploads/2021/10/cropped-osl-high-res-e1455499003866-32x32.jpg</url>
	<title>Mumbling Archives - Onestring Lab</title>
	<link>https://onestringlab.com/tag/mumbling/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Belajar Bahasa C &#8211; Mumbling</title>
		<link>https://onestringlab.com/mumbling/</link>
		
		<dc:creator><![CDATA[Rajo Intan]]></dc:creator>
		<pubDate>Thu, 01 Dec 2022 10:08:00 +0000</pubDate>
				<category><![CDATA[Codewars]]></category>
		<category><![CDATA[C Language]]></category>
		<category><![CDATA[Mumbling]]></category>
		<guid isPermaLink="false">https://onestringlab.com/?p=782</guid>

					<description><![CDATA[<p>This time no story, no theory. The examples below show you how to write function&#160;accum: Examples: The problem link is here. Solution:</p>
<p>The post <a href="https://onestringlab.com/mumbling/">Belajar Bahasa C &#8211; Mumbling</a> appeared first on <a href="https://onestringlab.com">Onestring Lab</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>This time no story, no theory. The examples below show you how to write function&nbsp;<code>accum</code>: </p>



<p><strong>Examples</strong>:</p>



<pre class="wp-block-code"><code class="">accum("abcd") -&gt; "A-Bb-Ccc-Dddd"
accum("RqaEzty") -&gt; "R-Qq-Aaa-Eeee-Zzzzz-Tttttt-Yyyyyyy"
accum("cwAt") -&gt; "C-Ww-Aaa-Tttt"</code></pre>



<p>The problem link is <a href="http://bit.ly/3GXJiNS" target="_blank" rel="noreferrer noopener">here</a>.</p>



<p><strong>Solution</strong>:</p>



<pre title="mumbling" class="wp-block-code"><code lang="csharp" class="language-csharp line-numbers">char *accum(const char *source)
{
  char temp;
  unsigned long i, j, mem;
  unsigned long length = strlen(source);

  mem = strlen(source);
  for (i = 0; i &lt;= length; i++)
  {
    mem += i;
  }

  char *mumbling = calloc(mem + 1, sizeof(char));

  for (i = 0; i &lt; length; i++)
  {
    for (j = 0; j &lt; i + 1; j++)
    {

      temp = (j == 0) ? toupper(source[i]) : tolower(source[i]);
      strncat(mumbling, &amp;temp, 1);
    }

    (i &lt; length - 1) ? strncat(mumbling, "-", 1) : "";
  }
  return mumbling;
}</code></pre>
<p>The post <a href="https://onestringlab.com/mumbling/">Belajar Bahasa C &#8211; Mumbling</a> appeared first on <a href="https://onestringlab.com">Onestring Lab</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
