From the manpage
man limits.h
:
{WORD_BIT}
Number of bits in an object of type int.
Minimum Acceptable Value: 32
However if I run a simple program:
#include
#include
int main() {
printf("%d\n", WORD_BIT);
return 0;
}
However when trying to compile with gcc (gcc file.c -o file
) I get the following:
error: ‘WORD_BIT’ undeclared (first use in this function)
How come this is not defined on my system, and where else can I find this information (in a C program)?
My system:
* Fedora 36 (Silverblue)
* gcc version 12.2.1 20220819 (Red Hat 12.2.1-1) (GCC)
* ldd (GNU libc) 2.35
Asked by rahmu
(20511 rep)
Sep 1, 2022, 11:17 AM
Last activity: Sep 2, 2022, 11:10 AM
Last activity: Sep 2, 2022, 11:10 AM