Re: including files



David Wilkinson wrote:
Declare function in the header:

void f(); // declaration, no definition


In C, make that rather 'void f(void);'.

Other than that, you might want to go to http://accu.org and pick a good
beginners' book from the reviews section.

Uli

.



Relevant Pages

  • Re: Vigenere Cipher
    ... The fact that stats() is in Polish and that you haven't ... This declaration as good as nothing. ... > void deszyfruj(); ... Better spell it out: int main. ...
    (comp.lang.c)
  • Re: Whats the deal with C99?
    ... <begin quote> ... The declaration syntax for main is: ... the main and wmain functions can be declared as returning ... void. ...
    (comp.lang.c)
  • Re: legality of forward declaration
    ... struct ForwardDeclared; ... void foo; ... declaration of your `struct`. ... When you are able to declare a parameter as either an array type or as ...
    (comp.lang.c)
  • Re: Whats the deal with C99?
    ... containing "void main" examples. ... <begin quote> ... The declaration syntax for main is: ... the main and wmain functions can be declared as returning ...
    (comp.lang.c)
  • Re: The 4th commandment
    ... specify the return type. ... with an ordinary return type of void, which is valid in C90 and C99, ... distinct only in the first 6 characters, ... declaration of a function named 'Main', which has nothing to do with ...
    (comp.lang.c)

Loading