linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Christian Stalp" <christian.stalp@gmx.de>
To: linux-c-programming@vger.kernel.org
Cc: Eric Polino <aluink@gmail.com>
Subject: Re: sprintf with mips
Date: Wed, 06 Feb 2008 23:48:22 +0100	[thread overview]
Message-ID: <20080206224822.178960@gmx.net> (raw)

the second printf is only for debugging purpose. The whole string 'insertvalues' is used for SQL-query later.


Eric Polino wrote:
>
>
> On Feb 6, 2008 2:16 PM, Christian Stalp <christian.stalp@gmx.de> wrote:
>
>     Hello out there,
>     are there any known problems with sprintf under mips? I spend some time to make this code runnable:
>
>     sprintf(insertvalues, " %d , ' %s ' , %d ", counter, "192.168.1.1", mytraffic->num_frames);
>     printf("input-string: %s\n", insertvalues);
>
>
> I don't know if this really matters...but why are you doing this this way?  Why not just do it in one line with
>
> printf("input-string:   %d , ' %s ' , %d \n", counter, "192.168.1.1", mytraffic->num_frames);

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

             reply	other threads:[~2008-02-06 22:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-06 22:48 Christian Stalp [this message]
2008-02-07  0:10 ` sprintf with mips Paul Jackson
  -- strict thread matches above, loose matches on Subject: below --
2008-02-10 22:25 Christian Stalp
2008-02-12 14:17 ` Stephen Kratzer
2008-02-12 16:31 ` Paul Jackson
2008-02-06 20:14 Christian Stalp
2008-02-06 19:58 Christian Stalp
2008-02-06 19:16 Christian Stalp
2008-02-06 19:45 ` Manning, Gary L
2008-02-06 21:21 ` Eric Polino

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=20080206224822.178960@gmx.net \
    --to=christian.stalp@gmx.de \
    --cc=aluink@gmail.com \
    --cc=linux-c-programming@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).