Re: problem using FILE pointer



On Feb 5, 11:17 pm, CBFalconer <cbfalco...@xxxxxxxxx> wrote:
abc wrote:
uint8 ecg[ecg_size]={0};

void main (void)

  ^^^^_____________main returns an int - say so.  void is illegal

With many compilers for limited resource processors it is quite common
to support the option of a void main() especially when 'returning'
from main is meaningless in these cases as it was never actually
called. (Again, to save stack space.)
.



Relevant Pages

  • Re: problem using FILE pointer
    ... to support the option of a void mainespecially when 'returning' ... from main is meaningless in these cases as it was never actually ... Some compilers complain if there's no return statement for the ...
    (comp.arch.embedded)
  • Re: problem using FILE pointer
    ... void main ... With many compilers for limited resource processors it is quite ... common to support the option of a void mainespecially when ...
    (comp.arch.embedded)
  • [PATCH] ppc64: Add new "Maple" platform support
    ... This patch adds support for the Maple 970FX Eval Board. ... /* Compatibility with drivers coming from PPC32 world */ ... static void udbg_real_putc ... +extern void maple_calibrate_decr; ...
    (Linux-Kernel)
  • spork Try not to dare a hedge!
    ... control seemingly or Sayed will support the clauses. ... almost involve common and penetrates our boring, ... but will Eve regard that? ... Plenty of dark net or mainland, ...
    (rec.games.roguelike.nethack)
  • [PATCH 2.6.15-rc5-mm1] m32r: Support M32104UT target platform
    ... config PLAT_MAPPI3 ... +static inline void *_port2addr(unsigned long port) ... +# PCCARD support ...
    (Linux-Kernel)