Re: I have a problem in my study



On Mon, 30 Oct 2006 15:19:27 UTC, Andrew Poelstra
<apoelstra@xxxxxxxxxx> wrote:


You can't have a prototype within another function. Move this to the
top of your program or into a header file.

Not true. That is absolutely legal. The visibility of the prototye is
restricted to the function only but that's all.

if (argc==1)
filecopy(stdin,stdout);

Please use spaces liberally; horizontal space is free in this
particular piece of code, and it makes things much easier to read.


--
Tschau/Bye
Herbert

Visit http://www.ecomstation.de the home of german eComStation
eComStation 1.2 Deutsch ist da!
.



Relevant Pages

  • Re: custom header files
    ... with the prototype declarations) were included in a header file. ... when I make function calls to any of the standard C ... were stored in a header file in the standard C library. ... what I'm wanting to do is make any functions that I create ...
    (comp.programming)
  • Re: integer and floating-point bit pattern
    ... > to include the proper header file for any ... Prior to the current standard you did not need a prototype or a ... declaration to call a function that returned int and accepted a fixed ...
    (comp.lang.c)
  • DNS NAMESERVER FUNCTIONS - USER DEFINED / BUILT-IN? URGENT!
    ... functions which are declared in the mentioned header file. ... myDns.c:108: warning: initialization from incompatible pointer type ... The prototype of the ns_name_uncompress function given in the ...
    (comp.os.linux.networking)
  • DNS Nameserver functions - User Defined or Built - in?URGENT!!!
    ... functions which are declared in the mentioned header file. ... myDns.c:108: warning: initialization from incompatible pointer type ... The prototype of the ns_name_uncompress function given in the ...
    (comp.unix.solaris)
  • Re: custom header files
    ... with the prototype declarations) were included in a header file. ... has replied to my post states that only prototype statements go in the ... whateverReturnType functionName; ...
    (comp.programming)