Re: portable way to get highest bit set?

Anton Shepelev <anton.txt@g{oogle}mail.com> Wed, 11 Oct 2023 10:27:14 +0300
Newsgroups comp.lang.c,alt.comp.lang.c
Organization A noiseless patient Spider
Message-ID <20231011102714.44a870af4dfe68f756974953@g{oogle}mail.com>
candycanearter07:

> What is the best/most portable way to get the highest bit
> set?
>
> ie. 011010001
> to  010000000

What is your best attempt, even if unsuccessful?

-- 
()  ascii ribbon campaign -- against html e-mail
/\  www.asciiribbon.org   -- against proprietary attachments