All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian Stalp" <christian.stalp@gmx.de>
To: linux-c-programming@vger.kernel.org
Subject: sprintf with mips
Date: Wed, 06 Feb 2008 20:16:00 +0100	[thread overview]
Message-ID: <20080206191600.243670@gmx.net> (raw)

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);

This works properly under x86 but if I run this under mips, the string is empty! Even if the variable 'counter' is uninitialized or 'mytraffic->num_frames' (which is not the case, I can see the values if I dump them directly with printf) there should be at least that IP-address-string which should be inserted! This is weired. Has anybody an idea what the problem is here?

Thank you.

Gruss Christian


-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

             reply	other threads:[~2008-02-06 19:16 UTC|newest]

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

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=20080206191600.243670@gmx.net \
    --to=christian.stalp@gmx.de \
    --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 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.