09-22-2017
Hi Corona688,
The signed, unsigned, and "unadorned" long long int types (i.e., signed long long int, unsigned long long int, and long long int) weren't available in K&R C nor in the first version of the ISO C Standard, but have been ISO C standard types since the 2nd version of the standard (AKA C99).
C99 also added the header <inttypes.h> which requires for a (possibly larger than long long) intmax_t. It also requires the types intN_t and uintN_t where N is 8, 16, 32, and 64 to hold signed and unsigned, respectively, integers of exactly 8, 16, 32, and 64 bits, respectively. It requires that intmax_t be a signed integer type of at least 64 bits and that uintmax_t be an unsigned integer type of at least 64 bits. And, it allows additional N values for any other lengths of integer types supported by your compiler.
I don't know of many compilers that support other lengths, but I have seem plans to develop a compiler that would at least support int96_t, uint96_t, int128_t, and uint128_t on 64-bit architecture hardware.
This User Gave Thanks to Don Cragun For This Post:
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
can anyone explain me difference between tar and ufsdump commands.............and also i wd like to know the difference between incremental and differential backup.........
thx in advance (1 Reply)
Discussion started by: girish_shukla
1 Replies
2. Filesystems, Disks and Memory
I have a file of type .for extension .In a guui based unix environment like solaris if I double click on that file a specific program designed by me has to run which takes this file as the parameter and exceutes the program.
Can anyone help me? (8 Replies)
Discussion started by: nhk_srd
8 Replies
3. UNIX for Dummies Questions & Answers
What is the difference between:
cd /tmp
tar -cf - *.txt |gzip > tmp_txt.tar.gz
and
cd /tmp
mknod pipe p
gzip < pipe > /tmp/tmp_txt1.tar.gz &
tar -cf pipe *.txt
Apart from the fact that we have to create the pipe file manually, is there any difference in the performance of the two?... (5 Replies)
Discussion started by: blowtorch
5 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am trying to launch an ogg movie from a pdf file which has been produced with pdflatex and
\movie
{\centerline{\includegraphics
{grafiques_xerrades/un_manolo_amb_camera.pdf}}}
{hlims_xerrades/XocCumuls.ogg}
The switch "externalviewer" makes kpdf launch the default... (5 Replies)
Discussion started by: pau
5 Replies
5. UNIX for Dummies Questions & Answers
Hi Folks,
As I am familiar wih both types compresion forms: gun-zip and .rpm. My questions is how do I uncompress gunz.zip type? As the .rpm I can double click and it will extract...Can someone shed some light on this and thank you...
M (2 Replies)
Discussion started by: Mombo_Z
2 Replies
6. Programming
If I want to declare an array of structures in C and have the number of items in that array to correspond to the items of an enumeration, is there a way to access the maximum value in the enumeration when declaring the array?
For instance:
typedef struct
{
various fields....
} ... (3 Replies)
Discussion started by: cleopard
3 Replies
7. What is on Your Mind?
On another simple topic, multiple choice answers OK ( you can pick more than one or suggest others - we will add your suggestions to the poll ).
What Types of Food Do You Like The Most? (27 Replies)
Discussion started by: Neo
27 Replies
8. Shell Programming and Scripting
hi,
how to I do this?
i="4.000"
if ; then
echo "smaller"
fi
how do I convert the "4.000" to 4?
Thanks! (4 Replies)
Discussion started by: h0ujun
4 Replies
9. Shell Programming and Scripting
the following excludes certain directories successfully
cp -r probe/!(dir) /destination
I want to exclude certain file types and tried unsuccessfully
cp -r probe/!(*.avi) /destination (2 Replies)
Discussion started by: tmf
2 Replies
LEARN ABOUT NETBSD
wcstoll
WCSTOL(3) BSD Library Functions Manual WCSTOL(3)
NAME
wcstol, wcstoul, wcstoll, wcstoull, wcstoimax, wcstoumax -- convert a wide-character string value to a long, unsigned long, long long,
unsigned long long, intmax_t or uintmax_t integer
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <wchar.h>
long
wcstol(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base);
unsigned long
wcstoul(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base);
long long
wcstoll(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base);
unsigned long long
wcstoull(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base);
#include <inttypes.h>
intmax_t
wcstoimax(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base);
uintmax_t
wcstoumax(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base);
DESCRIPTION
The wcstol(), wcstoul(), wcstoll(), wcstoull(), wcstoimax() and wcstoumax() functions are wide-character versions of the strtol(), strtoul(),
strtoll(), strtoull(), strtoimax() and strtoumax() functions, respectively. Refer to their manual pages (for example strtol(3)) for details.
SEE ALSO
strtol(3), strtoul(3)
STANDARDS
The wcstol(), wcstoul(), wcstoll(), wcstoull(), wcstoimax() and wcstoumax() functions conform to ISO/IEC 9899:1999 (``ISO C99'').
BSD
September 7, 2002 BSD