<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/printf</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sun, 26 May 2013 07:48:22 GMT</pubDate>
<item>
<title>(C++) Custom Printf function - FACastello</title>
<link>http://snipplr.com/view/43722/custom-printf-function/</link>
<description><![CDATA[ <p>This is a custom implementation of printf. You can expand this function to do whatever else you want it to do.</p> ]]></description>
<pubDate>Mon, 08 Nov 2010 05:17:00 GMT</pubDate>
<guid>http://snipplr.com/view/43722/custom-printf-function/</guid>
</item>
<item>
<title>(ASP) Classic ASP (basic) implementation of PHP's sprintf() function - samclarke</title>
<link>http://snipplr.com/view/35773/classic-asp-basic-implementation-of-phps-sprintf-function/</link>
<description><![CDATA[ <p>This is a basic implementation of PHP's handy sprintf() written in Classic ASP/VBScript. It's not as extensive as PHP's version as it doesn't support numbered parameters, and only works with %s placeholders, but it's better than nothing, right?

Makes for nice clean, understandable code as you can avoid concatenated strings containing function calls mid-string.</p> ]]></description>
<pubDate>Wed, 16 Jun 2010 19:27:29 GMT</pubDate>
<guid>http://snipplr.com/view/35773/classic-asp-basic-implementation-of-phps-sprintf-function/</guid>
</item>
<item>
<title>(C) Log all output to file - deepsoul</title>
<link>http://snipplr.com/view/29987/log-all-output-to-file/</link>
<description><![CDATA[ <p>With the code fragment below, you can easily add output logging to a text-based program.  Add the functions, open the log file and replace calls to (f)printf by (f)printflog.</p> ]]></description>
<pubDate>Thu, 18 Mar 2010 16:03:19 GMT</pubDate>
<guid>http://snipplr.com/view/29987/log-all-output-to-file/</guid>
</item>
<item>
<title>(C) Hacky screen clearing through printf - Ktoso</title>
<link>http://snipplr.com/view/15319/hacky-screen-clearing-through-printf/</link>
<description><![CDATA[ <p>A simple and hacky alternative for calling system("clear"); (which you really shouldn't use...). If you really have to get such an clear effect - use this snippet.

Although I realllly recommend using some lib to properly controll the terminal if you need such functions, for example ncurses http://pl.wikipedia.org/wiki/Ncurses or pdcurses http://pdcurses.sourceforge.net/ .</p> ]]></description>
<pubDate>Tue, 26 May 2009 04:52:47 GMT</pubDate>
<guid>http://snipplr.com/view/15319/hacky-screen-clearing-through-printf/</guid>
</item>
<item>
<title>(JavaScript) Sprintf in Javascript (string format) - jasonseney</title>
<link>http://snipplr.com/view/8984/sprintf-in-javascript-string-format/</link>
<description><![CDATA[ <p>Example:

`var result = "Hello {0}! This is {1}.".format("world","foo bar");`

Returns: 

`"Hello World! This is foo bar."`</p> ]]></description>
<pubDate>Mon, 13 Oct 2008 18:42:30 GMT</pubDate>
<guid>http://snipplr.com/view/8984/sprintf-in-javascript-string-format/</guid>
</item>
</channel>
</rss>