![]() Don't return something in a void function.Import the definition of memcpy: #include.Import the definition of getch: #include. ![]() And make it return 0 or return EXIT_SUCCESS.Also, you may want to tell the compiler whether you are writing ANSI C ( -ansi) or C99 ( -std=c99). If using gcc, compile with -Wall -pedantic (or even with -Wextra), and be sure to fix each warning before continuing to program additional functionality. ![]() Quote Andrey T:Īside from that, your code produces a bunch of other warnings. Thus it is assigned a "default signature", one which will in this case not match its actual signature. ![]() The problem is that swap was not declared before it is used. ![]()
0 Comments
Leave a Reply. |