linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "mikael-aronsson" <mikael-aronsson@telia.com>
To: Luciano Moreira - igLnx <lucianolnx@ig.com.br>,
	linux-c-programming <linux-c-programming@vger.kernel.org>
Subject: Re: 64 bits integer
Date: Wed, 10 Nov 2004 08:07:38 +0100	[thread overview]
Message-ID: <001101c4c6f3$f6af4250$bf95d1d9@w128mtec> (raw)
In-Reply-To: 41916F51.2060102@ig.com.br

Hi !

You can use the type "long long" to define 64 bit data in gcc, use strtoll()
atoll() to parse a string, and all the *printf functions has support for 64
bit values also.

Mikael

----- Original Message ----- 
From: "Luciano Moreira - igLnx" <lucianolnx@ig.com.br>
To: "linux-c-programming" <linux-c-programming@vger.kernel.org>
Sent: Wednesday, November 10, 2004 2:30 AM
Subject: 64 bits integer


> How can we do to manipulate integer higher than 32 bits in linux ?
>
> Does exist some system call (or another library), that allow us to do
> something like as following ?
>
> int64 x;
> x = atoi64("12345678901234567890");
>
> char x[21];
> i64toa(x, sizeof(x));
>
> Thanks,
>
> Luciano
>
> -
> To unsubscribe from this list: send the line "unsubscribe
linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


  reply	other threads:[~2004-11-10  7:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-10  1:30 64 bits integer Luciano Moreira - igLnx
2004-11-10  7:07 ` mikael-aronsson [this message]
2004-11-10 14:46 ` Jan-Benedict Glaw

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='001101c4c6f3$f6af4250$bf95d1d9@w128mtec' \
    --to=mikael-aronsson@telia.com \
    --cc=linux-c-programming@vger.kernel.org \
    --cc=lucianolnx@ig.com.br \
    /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).