|
|
<string>, but you aren't using any strings. You're manipulating character arrays instead.gets(), which you should never ever do. Because you used it, I can supply specially crafted input to your program that will trick it to do whatever I want - I can make it format your hard drive or email me your passwords, all I need is access to your keyboard. |
|
|
|
| C99 wrote: |
|---|
| 5.1.2.2.1 Program startup 1 The function called at program startup is named main. The implementation declares no prototype for this function. It shall be defined with a return type of int and with no parameters: int main(void) { /* ... */ }or with two parameters (referred to here as argc and argv, though any names may be used, as they are local to the function in which they are declared): int main(int argc, char *argv[]) { /* ... */ }or equivalent;) or in some other implementation-defined manner. |
while (*pA); |
|
|
|