>>1 system("type filename > filename.tmp");
Not portable, therefore not enterprise
Name:
Anonymous2012-01-12 21:46
No buffer overflow prevention, therefore highly exploitable. What if ``filename'' was malicious machine code and you overflowed the buffer, causing malicious machine code to spill into the saved call point in memory, causing the code to run when the function returned? You're screwed.
>>5
What if the C implementation didn't use a single stack that retardedly places the return address at the point just past the end of the local variables?
Name:
Anonymous2012-01-12 22:15
>>5
C doesn't have a concept of stack, you should probably go back to /g/
>>17 C99 7.19.5.3.8 The fopen function returns a pointer to the object controlling the stream. If the open operation fails, fopen returns a null pointer.
So what happens if fopen() returns a NULL pointer and you call fgetc() on it? C99 7.1.4.1 Each of the following statements applies unless explicitly stated otherwise in the detailed descriptions that follow: If an argument to a function has an invalid value (such as a value outside the domain of the function, or a pointer outside the address space of the program, or a null pointer, or a pointer to non-modifiable storage when the corresponding parameter is not const-qualified) or a type (after promotion) not expected by a function with variable number of arguments, the behavior is undefined.
The Standard provides no exceptions for fgetc(), so it's undefined behavior.
>>29
I think it's a joke about how CMD.EXE replaces all Unicode characters with question marks, hence the type command. TYPE as in DOS's version of cat, not the Unix command
if is not a function. do is not a function. while is not a function. sizeof is not a function. (a + b) * c is not a function.
Since when do parenthesis imply functions?
Fucking autists.
Name:
Anonymous2012-01-13 7:07
>>39
It's not the parenthesis you stupid sack of shit, it's the spacing. Read K&R you dumb Jew.