tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Segmentation fault compiling broken 1-liner


From: K.G.
Subject: Re: [Tinycc-devel] Segmentation fault compiling broken 1-liner
Date: Tue, 30 Aug 2005 20:04:04 +0200

On Tue, 30 Aug 2005 19:57:59 +0300
Antti-Juhani Kaijanaho <address@hidden> wrote:

> Antti-Juhani Kaijanaho wrote:
> > There is no declaration of printf in the file (either included or
> > otherwise), and since printf is a stdarg function, a prototype must be
> > in scope.  However, this does not explain the segfault.
> 
> Also, main should return int.

In C99 you can "return" void if you want (i don't know about previous
standards)

Guillaume Knispel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]