<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Dobby33</title>
    <description>The latest articles on DEV Community by Dobby33 (@dobby33).</description>
    <link>https://dev.to/dobby33</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2832439%2Fef18370a-9929-4d4f-b045-86ac1e425b13.png</url>
      <title>DEV Community: Dobby33</title>
      <link>https://dev.to/dobby33</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/dobby33"/>
    <language>en</language>
    <item>
      <title>https://unix.stackexchange.com/a/660292</title>
      <dc:creator>Dobby33</dc:creator>
      <pubDate>Mon, 24 Mar 2025 13:22:39 +0000</pubDate>
      <link>https://dev.to/dobby33/httpsunixstackexchangecoma660292-3kah</link>
      <guid>https://dev.to/dobby33/httpsunixstackexchangecoma660292-3kah</guid>
      <description></description>
      <category>emptystring</category>
    </item>
    <item>
      <title>https://en.m.wikipedia.org/wiki/ANSI_escape_code</title>
      <dc:creator>Dobby33</dc:creator>
      <pubDate>Wed, 19 Mar 2025 16:30:48 +0000</pubDate>
      <link>https://dev.to/dobby33/httpsenmwikipediaorgwikiansiescapecode-28j4</link>
      <guid>https://dev.to/dobby33/httpsenmwikipediaorgwikiansiescapecode-28j4</guid>
      <description></description>
      <category>emptystring</category>
    </item>
    <item>
      <title>https://en.m.wikipedia.org/wiki/Code_page_437</title>
      <dc:creator>Dobby33</dc:creator>
      <pubDate>Wed, 19 Mar 2025 15:49:40 +0000</pubDate>
      <link>https://dev.to/dobby33/httpsenmwikipediaorgwikicodepage437-4ek8</link>
      <guid>https://dev.to/dobby33/httpsenmwikipediaorgwikicodepage437-4ek8</guid>
      <description></description>
    </item>
    <item>
      <title>Answer: strtol reusing param</title>
      <dc:creator>Dobby33</dc:creator>
      <pubDate>Sat, 08 Mar 2025 11:22:42 +0000</pubDate>
      <link>https://dev.to/dobby33/answer-strtol-reusing-param-nm5</link>
      <guid>https://dev.to/dobby33/answer-strtol-reusing-param-nm5</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fstackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/13952015/strtol-reusing-param/13952314#13952314" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: strtol reusing param
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Dec 19 '12&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/13952015/strtol-reusing-param/13952314#13952314" rel="noopener noreferrer"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fstackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          6
        &lt;/div&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fstackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Yes, it is safe. The first argument is passed by value, so &lt;a href="http://en.cppreference.com/w/c/string/byte/strtol" rel="nofollow noopener noreferrer"&gt;&lt;code&gt;strtol&lt;/code&gt;&lt;/a&gt; has a local copy that isn't affected by changes written to the second parameter.&lt;/p&gt;

    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/13952015/strtol-reusing-param/13952314#13952314" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>c</category>
    </item>
    <item>
      <title>https://wiki.creativecommons.org/wiki/Recommended_practices_for_attribution</title>
      <dc:creator>Dobby33</dc:creator>
      <pubDate>Fri, 07 Mar 2025 08:54:24 +0000</pubDate>
      <link>https://dev.to/dobby33/httpswikicreativecommonsorgwikirecommendedpracticesforattribution-fak</link>
      <guid>https://dev.to/dobby33/httpswikicreativecommonsorgwikirecommendedpracticesforattribution-fak</guid>
      <description></description>
    </item>
    <item>
      <title>https://www.gnu.org/licenses/gpl-3.0.html</title>
      <dc:creator>Dobby33</dc:creator>
      <pubDate>Fri, 07 Mar 2025 08:53:24 +0000</pubDate>
      <link>https://dev.to/dobby33/httpswwwgnuorglicensesgpl-30html-4hdn</link>
      <guid>https://dev.to/dobby33/httpswwwgnuorglicensesgpl-30html-4hdn</guid>
      <description></description>
      <category>opensource</category>
    </item>
    <item>
      <title>https://semver.org/#semantic-versioning-specification-semver</title>
      <dc:creator>Dobby33</dc:creator>
      <pubDate>Thu, 27 Feb 2025 20:59:42 +0000</pubDate>
      <link>https://dev.to/dobby33/httpssemverorgsemantic-versioning-specification-semver-mdp</link>
      <guid>https://dev.to/dobby33/httpssemverorgsemantic-versioning-specification-semver-mdp</guid>
      <description></description>
    </item>
    <item>
      <title>Answer: ASCII Library for Creating "Pretty" Directory Trees?</title>
      <dc:creator>Dobby33</dc:creator>
      <pubDate>Wed, 26 Feb 2025 19:17:00 +0000</pubDate>
      <link>https://dev.to/dobby33/answer-ascii-library-for-creating-pretty-directory-trees-41mh</link>
      <guid>https://dev.to/dobby33/answer-ascii-library-for-creating-pretty-directory-trees-41mh</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fstackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/1581559/ascii-library-for-creating-pretty-directory-trees/13374538#13374538" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: ASCII Library for Creating "Pretty" Directory Trees?
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Nov 14 '12&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/1581559/ascii-library-for-creating-pretty-directory-trees/13374538#13374538" rel="noopener noreferrer"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fstackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          90
        &lt;/div&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fstackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;That oneliner is pretty cool, I'd recommend using the &lt;strong&gt;tree&lt;/strong&gt; util.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;bash-3.2$ mkdir -p this/is/some/nested/example
bash-3.2$ mkdir -p this/is/another/super/nested/example
bash-3.2$ mkdir -p this/is/yet/another/example
bash-3.2$ mkdir -p this/is/some/nested/other/example
bash-3.2$ tree this
this
`-- is
    |-- another
    |   `-- super
    |       `-- nested
    |           `-- example
    |-- some
    |   `-- nested
    |&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/1581559/ascii-library-for-creating-pretty-directory-trees/13374538#13374538" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>programming</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Answer: How to use the addr2line command in Linux?</title>
      <dc:creator>Dobby33</dc:creator>
      <pubDate>Tue, 25 Feb 2025 20:39:45 +0000</pubDate>
      <link>https://dev.to/dobby33/answer-how-to-use-the-addr2line-command-in-linux-35of</link>
      <guid>https://dev.to/dobby33/answer-how-to-use-the-addr2line-command-in-linux-35of</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fstackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/7648642/how-to-use-the-addr2line-command-in-linux/7650408#7650408" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: How to use the addr2line command in Linux?
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Oct  4 '11&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/7648642/how-to-use-the-addr2line-command-in-linux/7650408#7650408" rel="noopener noreferrer"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fstackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          34
        &lt;/div&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fstackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;You need to specify an &lt;em&gt;offset&lt;/em&gt; to addr2line, not a virtual address (VA).  Presumably if you had address space randomization turned off, you could use a full VA, but in most modern OSes, address spaces are randomized for a new process.&lt;/p&gt;
&lt;p&gt;Given the VA &lt;code&gt;0x4005BDC&lt;/code&gt; by valgrind, find the base…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/7648642/how-to-use-the-addr2line-command-in-linux/7650408#7650408" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>linux</category>
    </item>
    <item>
      <title>Answer: How to get a stack trace for C++ using gcc with line number information? [duplicate]</title>
      <dc:creator>Dobby33</dc:creator>
      <pubDate>Tue, 25 Feb 2025 19:23:26 +0000</pubDate>
      <link>https://dev.to/dobby33/answer-how-to-get-a-stack-trace-for-c-using-gcc-with-line-number-information-duplicate-5h7k</link>
      <guid>https://dev.to/dobby33/answer-how-to-get-a-stack-trace-for-c-using-gcc-with-line-number-information-duplicate-5h7k</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fstackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/4636456/how-to-get-a-stack-trace-for-c-using-gcc-with-line-number-information/4674531#4674531" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: How to get a stack trace for C++ using gcc with line number information?
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jan 12 '11&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/4636456/how-to-get-a-stack-trace-for-c-using-gcc-with-line-number-information/4674531#4674531" rel="noopener noreferrer"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fstackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          37
        &lt;/div&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fstackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;Not too long ago &lt;a href="https://stackoverflow.com/questions/3151779/how-its-better-to-invoke-gdb-from-program-to-print-its-stacktrace/4611112#4611112" rel="noopener noreferrer"&gt;I answered a similar question&lt;/a&gt;. You should take a look at the source code available on method #4, which also prints line numbers and filenames.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Method #4:&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A small improvement I've done on method #3 to print line numbers. This could be copied to work…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/4636456/how-to-get-a-stack-trace-for-c-using-gcc-with-line-number-information/4674531#4674531" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>cpp</category>
      <category>programming</category>
      <category>development</category>
    </item>
    <item>
      <title>Answer: How to know caller function when tracing assertion failure</title>
      <dc:creator>Dobby33</dc:creator>
      <pubDate>Tue, 25 Feb 2025 18:27:01 +0000</pubDate>
      <link>https://dev.to/dobby33/answer-how-to-know-caller-function-when-tracing-assertion-failure-dki</link>
      <guid>https://dev.to/dobby33/answer-how-to-know-caller-function-when-tracing-assertion-failure-dki</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;div class="ltag__stackexchange--header"&gt;
          &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fstackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
          &lt;a href="https://stackoverflow.com/questions/9555837/how-to-know-caller-function-when-tracing-assertion-failure/9555939#9555939" rel="noopener noreferrer"&gt;
            &lt;span class="title-flare"&gt;answer&lt;/span&gt; re: How to know caller function when tracing assertion failure
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Mar  4 '12&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/9555837/how-to-know-caller-function-when-tracing-assertion-failure/9555939#9555939" rel="noopener noreferrer"&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fstackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          8
        &lt;/div&gt;
        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fstackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;See &lt;code&gt;backtrace()&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;e.g.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;#include &amp;lt;execinfo.h&amp;gt;
#include &amp;lt;stdio.h&amp;gt;

void bar() {
  void* callstack[128];
  int i, frames = backtrace(callstack, 128);
  char** strs = backtrace_symbols(callstack, frames);
  for (i = 0; i &amp;lt; frames; ++i) {
    printf("%s\n", strs[i]);
  }
  free(strs);
}

int foo() {
  bar();
  return 0;
}

int main() {
  foo();
  return&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    &lt;a href="https://stackoverflow.com/questions/9555837/how-to-know-caller-function-when-tracing-assertion-failure/9555939#9555939" class="ltag__stackexchange--btn" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>programming</category>
      <category>discuss</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>https://en.m.wikipedia.org/wiki/UTF-8#Description</title>
      <dc:creator>Dobby33</dc:creator>
      <pubDate>Fri, 21 Feb 2025 18:41:23 +0000</pubDate>
      <link>https://dev.to/dobby33/httpsenmwikipediaorgwikiutf-8description-ka8</link>
      <guid>https://dev.to/dobby33/httpsenmwikipediaorgwikiutf-8description-ka8</guid>
      <description></description>
    </item>
  </channel>
</rss>
