Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #142435
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Keith Thompson <kst-u@mib.org> |
| Newsgroups | comp.lang.c |
| Subject | Re: nullptr in C |
| Date | Mon, 25 Mar 2019 13:15:01 -0700 |
| Organization | None to speak of |
| Lines | 23 |
| Message-ID | <lnmulibtiy.fsf@kst-u.example.com> (permalink) |
| References | <889cb53d-0093-4df2-8cb6-9717f07c4145@googlegroups.com> <96bb97ca-866f-4bb9-8105-c837efbdf5b6@googlegroups.com> <4d7e3b50-08f1-460d-8c87-3b116a7bc906@googlegroups.com> <8e0e9586-6759-4570-9f5d-dfe3b9f7844b@googlegroups.com> <9473b4e4-c8f0-4659-8d94-efaeb6a7dd35@googlegroups.com> <87d6403f-cb75-4f85-acba-bb180d5cb95e@googlegroups.com> <b1421d91-842c-4843-ae92-3ddbbc4fd436@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Injection-Info | reader02.eternal-september.org; posting-host="784bbd8fb1c90ff7036d4663e7b2295d"; logging-data="3087"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+ztzXt34NWaIhhIFpZEHbY" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
| Cancel-Lock | sha1:+FuLWKwb0+NTAC6Td+71HqvXeJk= sha1:7gYCzX7xI04qCpCn8UpDPiPZAlM= |
| Xref | csiph.com comp.lang.c:142435 |
Show key headers only | View raw
James Kuyper <jameskuyper@alumni.caltech.edu> writes:
> On Monday, March 25, 2019 at 3:02:11 PM UTC-4, Thiago Adams wrote:
[...]
>> In this case, what do you use for 'true' and 'false' ?
>>
>> (Both macros are defined in stdbool.h)
>
> if(condition)
> if(!condition)
>
> Assuming the condition variable is suitably named, that should be a very
> clear, obvious way of using it.
What about this?
_Bool condition = false;
Do you just never find a need to write something like that?
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Will write code for food.
void Void(void) { Void(); } /* The recursive call of the void */
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: nullptr in C Thiago Adams <thiago.adams@gmail.com> - 2019-03-22 12:14 -0700
Re: nullptr in C James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-03-22 13:29 -0700
Re: nullptr in C Thiago Adams <thiago.adams@gmail.com> - 2019-03-24 04:51 -0700
Re: nullptr in C William Ahern <william@25thandClement.com> - 2019-03-25 06:50 -0700
Re: nullptr in C James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-03-25 11:37 -0700
Re: nullptr in C Thiago Adams <thiago.adams@gmail.com> - 2019-03-25 12:01 -0700
Re: nullptr in C James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-03-25 12:23 -0700
Re: nullptr in C Ian Collins <ian-news@hotmail.com> - 2019-03-26 08:33 +1300
Re: nullptr in C James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-03-25 12:58 -0700
Re: nullptr in C Ian Collins <ian-news@hotmail.com> - 2019-03-26 10:25 +1300
Re: nullptr in C Keith Thompson <kst-u@mib.org> - 2019-03-25 13:15 -0700
Re: nullptr in C James Kuyper <jameskuyper@alumni.caltech.edu> - 2019-03-25 13:21 -0700
csiph-web