Path: csiph.com!weretis.net!feeder8.news.weretis.net!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: How to add ssize_t a by size_t b? Date: Fri, 01 Oct 2021 14:29:06 -0700 Organization: None to speak of Lines: 19 Message-ID: <87pmsoh1st.fsf@nosuchdomain.example.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="13acd1fe4bff95bcb7ffb2395063c869"; logging-data="20569"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19mAZwsLZApCxYCPaBfmd3+" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:OcmBHMz/eX2i18bJhSM62m0+cwc= sha1:bm59WFGIRuC1c4BnoUjoDU0CsOk= Xref: csiph.com comp.lang.c:162921 scott@slp53.sl.home (Scott Lurndal) writes: > Guillaume writes: [...] >>ssize_t is not standard C. It's defined in POSIX. >>While it's a signed integer, whereas size_t is unsigned, I don't know >>how it relates to size_t on a given implementation in terms of width. > > POSIX specifies that sizeof(ssize_t) == sizeof(size_t). Does it? I couldn't find any such guarantee. https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html [...] -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips void Void(void) { Void(); } /* The recursive call of the void */