Deutsch English Français Italiano |
<878qw13a40.fsf@nosuchdomain.example.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson <Keith.S.Thompson+u@gmail.com> Newsgroups: comp.lang.c Subject: Re: Top 10 most common hard skills listed on resumes... Date: Sun, 08 Sep 2024 18:10:39 -0700 Organization: None to speak of Lines: 27 Message-ID: <878qw13a40.fsf@nosuchdomain.example.com> References: <vab101$3er$1@reader1.panix.com> <87v7zjuyd8.fsf@bsb.me.uk> <20240829084851.962@kylheku.com> <87mskvuxe9.fsf@bsb.me.uk> <vaq9tu$1te8$1@dont-email.me> <vbci8r$1c9e8$1@paganini.bofh.team> <vbcs65$eabn$1@dont-email.me> <vbekut$1kd24$1@paganini.bofh.team> <vbepcb$q6p2$1@dont-email.me> <vbgb5q$1ruv8$1@paganini.bofh.team> <vbhbbb$1blt4$1@dont-email.me> <vbipp5$24kl5$1@paganini.bofh.team> <vbk0d9$1tajm$1@dont-email.me> <vbkpfc$27l2o$1@paganini.bofh.team> <vbl3am$228vv$1@dont-email.me> <vblfgb$2dkij$1@paganini.bofh.team> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Mon, 09 Sep 2024 03:10:40 +0200 (CEST) Injection-Info: dont-email.me; posting-host="5130c977fa34ae7ba7f2b29594baf74a"; logging-data="2245032"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18xKsYN7NPj/tmbjFoykCgD" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:kkyAVnELzCxjMUSkwl65JtdflOk= sha1:OSdJoCJkGHifKKk9dTb6trW9hrI= Bytes: 2321 Waldek Hebisch <antispam@fricas.org> writes: > Bart <bc@freeuk.com> wrote: [...] >> I had a problem with this code because it was so verbose. The first >> thing I did was to define aliases u64 and u32 for those long types: >> >> typedef unsigned long long u64; >> typedef unsigned long u32; > > This code runs in 33 bit i386, 32 bit ARM and 64 bit x86-64, in > all cases under Linux. As Keith noticed, most popular of those > has 64-bit long. So your definition would break it. You need > > typedef unsigned int u32; Just add #include <stdint.h> and use uint32_t -- or, if you value brevity for some reason: typedef uint32_t u32; (Bart dislikes <stdint.h>, but there's no reason you should.) [...] -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com void Void(void) { Void(); } /* The recursive call of the void */