All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hendrik Visage <hvjunk@gmail.com>
To: Ankit Jain <ankitjain1580@yahoo.com>
Cc: linux prg <linux-c-programming@vger.kernel.org>,
	newbie <linux-newbie@vger.kernel.org>
Subject: Re: Printf and scanf
Date: Fri, 24 Jun 2005 23:20:35 +0200	[thread overview]
Message-ID: <d93f04c70506241420114b28da@mail.gmail.com> (raw)
In-Reply-To: <20050605122105.1865.qmail@web52905.mail.yahoo.com>

On 6/5/05, Ankit Jain <ankitjain1580@yahoo.com> wrote:

> i just want to know how scanf function can be used on
> the place of printf and vice versa

In the Obfuscated C contest one of the first/early entries is one that
states "Using read to write" (Or something to similar extend, or
perhaps even using scanf to print). Reading that code is hackery, and
from my first glance at the code, it was don't with quote and macro
hackery.

Thus you could #define scanf __prinf and #define printf __scanf... or
something with similar confusing

-- 
Hendrik Visage
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

  parent reply	other threads:[~2005-06-24 21:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-05 12:21 Printf and scanf Ankit Jain
2005-06-05 13:54 ` Arturas Moskvinas
2005-06-05 14:03   ` Eric Bambach
2005-06-05 13:59 ` Steve Graegert
2005-06-24 21:20 ` Hendrik Visage [this message]
2005-06-27 18:11   ` Andriot
2005-06-28  3:42     ` joy merwin monteiro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d93f04c70506241420114b28da@mail.gmail.com \
    --to=hvjunk@gmail.com \
    --cc=ankitjain1580@yahoo.com \
    --cc=linux-c-programming@vger.kernel.org \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.