Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

stdbool(3) [netbsd man page]

STDBOOL(3)						   BSD Library Functions Manual 						STDBOOL(3)

stdbool -- standard boolean types SYNOPSIS
#include <stdbool.h> DESCRIPTION
The <stdbool.h> header defines four macros: 1. bool, which expands to _Bool; 2. true, which expands to the integer constant 1; 3. false, which expands to the integer constant 0; and 4. __bool_true_false_are_defined, which expands to the constant 1. The ability to undefine and redefine the macros bool, true, and false is an obsolescent feature that may be withdrawn in a future version of a standard. SEE ALSO
stdint(3) STANDARDS
The <stdbool.h> header conforms to ISO/IEC 9899:1999 (``ISO C99'') and IEEE Std 1003.1-2001 (``POSIX.1''). HISTORY
The <stdbool.h> header was first introduced in NetBSD 1.6. BSD
March 21, 2010 BSD

Check Out this Related Man Page

STDDEF(3)						   BSD Library Functions Manual 						 STDDEF(3)

stddef -- standard type definitions SYNOPSIS
#include <stddef.h> DESCRIPTION
The <stddef.h> header defines the following types and macros: 1. ptrdiff_t, a signed integer type of the result of subtracting two pointers; 2. size_t, an unsigned integer type of the result of the sizeof() operator; 3. wchar_t, an integer type whose range of values can represent distinct wide-character codes for all members of the largest character set specified among the supported locales: the null character has the code value 0 and each member of the character set has a code value equal to its value when used as the lone character in an integer character constant; 4. NULL, which expands to an implementation-defined null pointer constant; and 5. offsetof(), a macro that expands to an integer constant as described in offsetof(3). Some of the described types and macros may appear also in other headers. SEE ALSO
offsetof(3), stdlib(3), unistd(3) STANDARDS
As described here, the <stddef.h> header conforms to ISO/IEC 9899:1999 (``ISO C99'') and IEEE Std 1003.1-2001 (``POSIX.1''). Some of the types and macros conform to earlier standards such as ANSI X3.159-1989 (``ANSI C89''). HISTORY
In the current form the <stddef.h> header was introduced in NetBSD 0.8, the first official release of NetBSD. Some definitions such as NULL were first introduced already in the <nsys/param.h> header of Version 4 AT&T UNIX. BSD
April 10, 2011 BSD
Man Page

13 More Discussions You Might Find Interesting

1. Programming

Building an argc/argv style structure from a string (char*)

Hello All, First post. I've been struggling with the following: Given a char* string, I need to construct an "int argc, char *argv" style structure. What I'm struggling with most is handling escaped-whitespace and quotes. e.g. the string: char *s = "hello world 'my name is simon'... (10 Replies)
Discussion started by: cbarwise
10 Replies

2. Programming

#pragma warn codes on Sun Solaris to disable some warns?

I am not able to find warn-codes that should be used in #pragma warn -<code> directive!:wall: Could anybody advise where I can see a list of warnings with codes that (as I understand) should be 3-letters code? I have a pro-C program that produces some warnings. (Do not advise,... (4 Replies)
Discussion started by: alex_5161
4 Replies

3. Programming

Ubuntu 10.04 + Multicast Receiver c++

Hello all, I have created a UDP multicast transmitter and receiver, first using windows. But now I need the receiver to run on Ubuntu 10.04. The code is the following: /************************** Receiver *************************/ // Module Name: Receiver.c // // Description: // ... (0 Replies)
Discussion started by: tiny05
0 Replies

4. Programming

Iterating and calloc questions.

Whilst creating the function readjust_descr I have stumble across what may be a problem or something that might just work. I was hoping someone could look at the code below and tell me if readjust_descr will clear all null pointers from the structure descr_list. struct descr descr_list =... (6 Replies)
Discussion started by: Errigour
6 Replies

5. Programming

Now i can't get FD_ISSET to work

I have this server I am making but it ignores an if statement which I have posted below so i want to ask If I could post main.c which compiles without errors for me and see if anyone could tell me why the code below doesn't trigger my function. I want to ask first because some forums don't... (7 Replies)
Discussion started by: Errigour
7 Replies

6. Programming

unable to send a char parameter from main to a function

why does this not work? #include <stdio.h> #include <stdlib.h> char getFileMode(char charChanger) { char filetype; /*var to hold the value to be returned*/ filetype = charSetter; /*set filetype to "l" if it is a symlink*/ return filetype; } int main(void){ char... (8 Replies)
Discussion started by: bluetxxth
8 Replies

7. Ubuntu

problem in install rcsslogplayer-15.0.0

hello my OS is ubuntu 11.10 (64 bit) When the command. / Configure for rcsslogplayer-15.0.0 I get an error message. I left a message at the below: mehran@mehran-Rev-1-0:~/rcsslogplayer-15.0.0$ ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build... (0 Replies)
Discussion started by: me64
0 Replies

8. Programming

Why do I receive Program received signal SIGABRT, Aborted?

Im using gdb and when a user disconnects from my server I receive a message Program received signal SIGABRT, Aborted. 0x7ffe0304 in ?? () I was hoping someone here might have a explination for this message in gdb (26 Replies)
Discussion started by: Errigour
26 Replies

9. Solaris

fatal error: stdio.h: No such file or directory

Trying to compile a C program recievin this hello.c:1:19: fatal error: stdio.h: No such file or directory gcc is installed on the system. echo $PATH /usr/bin:/usr/sbin:/usr/gcc/4.5/include/c++/4.5.2/tr1 root@Sol11swtb01:/media/NO NAME/Programming/C/Testing# cd... (2 Replies)
Discussion started by: Fingerz
2 Replies

10. Programming

Main.c:(.text+0x55): undefined reference to

I'm getting this error. I'm guessing either there is an error in my code or I am missing a library. Can I please have some ideas on what the problem is? main.c:(.text+0x55): undefined reference to$ gcc *.c /tmp/ccP8MDTO.o: In function `getInput': main.c:(.text+0x55): undefined reference to... (3 Replies)
Discussion started by: cokedude
3 Replies

11. Shell Programming and Scripting

C command not found

Dear All, I am trying to install a program in Opensuse linux and while issuing the 'make' command, its showing me an error /bin/sh: C: command not found Kindly help me to troubleshoot the problem. I have gcc, c++ all install in the linux machine. Thanks (9 Replies)
Discussion started by: biochemist
9 Replies

12. Shell Programming and Scripting

Leaving directory Error

Hi, i have a question, when I install any software it give error message like as follow : sudo make password for csm: make all-recursive make: Entering directory `/home/csm/Desktop/miRanda-3.3a' Making all in man make: Entering directory `/home/csm/Desktop/miRanda-3.3a/man' make:... (18 Replies)
Discussion started by: harpreetmanku04
18 Replies

13. UNIX for Beginners Questions & Answers

NTP synchronised problem in our Centos 7.6 node

Someone, please help on this issue:- Note : for security reason i didn't mention hostnames and ips. ============================================================================== # ntpstat unsynchronised polling server every 1024 s Ntpstat showing unsynchronised. ... (29 Replies)
Discussion started by: shanmugaraj
29 Replies