Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Program to read csv file, store characters and numbers in separate arrays Date: Thu, 15 Dec 2016 12:23:03 -0800 Organization: None to speak of Lines: 27 Message-ID: References: <09988b6c-e11e-4fd6-8731-7992d16c7b94@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="d13fb784dfa5b4f5223d68f3ab06c5fb"; logging-data="11406"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19uC3y/xUedrfWZDEv+xjpu" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:L8D6OIaxaMIfERqCioQWEqwAIK4= sha1:Lsz2X3cOV1yfkwnscSgFyIXXlPc= Xref: csiph.com comp.lang.c:99562 Richard Heathfield writes: > [the code] > > On 15/12/16 13:05, Alla _ wrote: > >> (3) I will use a header file, in which I will store preprocessor >> commands, like #define and #include, as well as functions' >> declarations, etc.; > > A well-designed header contains *only* the following: > > 1) inclusion guards; > 2) macro definitions (#defines); > 3) type definitions (typedefs); > 4) function prototypes; > 5) comments; > 6) #include directives *ONLY* for those headers that are required for > the immediate purposes of the header itself. I'd also include struct, union, and enum type declarations if appropriate. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"