Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Sort char array Date: Mon, 14 Oct 2019 16:18:18 -0700 Organization: None to speak of Lines: 17 Message-ID: References: <20191007131948.c9f28d44bcd105e7a153069a@g{oogle}mail.com> <2xFmF.867378$yH4.431562@fx18.am4> <20191007174244.385138503569a8bc6d4eec9d@g{oogle}mail.com> <20191008022725.36fbd95aa45ba185290e5e11@gmail.com> <1q_mF.841756$Zy3.585129@fx33.am4> <20191009020207.b533aa1c6d95f44eb314ffc1@gmail.com> <20191010030322.2da081faffb190e4f5370362@gmail.com> <20191011005333.eaad614c3736b2f559a2db66@gmail.com> <5da49c78.2833078@news.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: reader02.eternal-september.org; posting-host="130d15cef3104c5755251cbc47826996"; logging-data="30118"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+NGByh7IxFkH+cLpNrZyZO" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:dmeWVIDRwrjTRVTw//65PVbtumw= sha1:KtUt47O5HL6FQaVcrLx7w/c+x7A= Xref: csiph.com comp.lang.c:146979 Bart writes: [...] > Yet it doesn't contain the essential information I listed. Could you, > just from that, create a table of field names, sizes and offsets, > followed by a total struct size? You could write a C program that prints the offsetof and sizeof values for the members of the struct. > And since this can vary by platform, how to get an accurate table for yours? By compiling and running that program on each platform. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Will write code for food. void Void(void) { Void(); } /* The recursive call of the void */