EXIT_SUCCESS
1
Name:
Anonymous
2011-01-26 21:50
What is the difference between using return (0) and return (EXIT_SUCCESS) at the end of main?
2
Name:
Anonymous
2011-01-26 21:53
EXIT_SUCCESS is not guaranteed to be 0 all the systems.
Get the fuck out.
3
Name:
Anonymous
2011-01-26 21:55
Neither is meant to use parentheses.
Get the fuck out.
4
Name:
Anonymous
2011-01-26 21:57
``Neither is meant to use parentheses.''
Back to /b/, please.
5
Name:
Anonymous
2011-01-26 22:01
>>4
Uses return(...);
Get the fuck out.
6
Name:
Anonymous
2011-01-26 22:06
Fuck the geSegmentaCore dumKernel panic
7
Name:
Anonymous
2011-01-26 22:13
>>6
What the fu
SegmentCore dKernel panA fatal exceptUncaught excGuru meditStack overflow
8
Name:
Anonymous
2011-01-26 22:14
9
Name:
Anonymous
2011-01-26 22:43
EXIT_SUCCESS == ENTER_FAILURE
10
Name:
Anonymous
2011-01-26 23:18
11
Name:
Anonymous
2011-01-26 23:28
12
Name:
Anonymous
2011-01-26 23:58
>>11
back to /b/, ``faggot''
13
Name:
Anonymous
2011-01-27 0:01
14
Name:
Anonymous
2011-01-27 1:07
>>12
enjoy yo'ure FAIL AND AIDS, /PROG/
15
Name:
Anonymous
2011-01-27 1:32
>>12
Please try to ignore troll posts.
16
Name:
Anonymous
2011-01-27 2:49
There is no difference. Here are the relevant quotes from the latest version of the current C standard (n1256.pdf):
5.1.2.2.3p1: [...] a return from the initial call to the main function is equivalent to calling the exit function with the value returned by the main function as its argument [...]
7.20.4.3p5: [...] If the value of [the argument to exit] is zero or EXIT_SUCCESS, an implementation-defined form of the status successful termination is returned [(to the host environment)] [...]
17
Name:
hi
!vR2V/x3ZBA
2011-01-27 3:32
polecat kebabs
18
Name:
Anonymous
2011-01-27 4:04
>>14
Anusopathic neopederaste
19
Name:
Anonymous
2011-01-27 8:49
20
Name:
Anonymous
2011-01-27 9:47
EXIT_SUCCESS is better because more people will know what it means intuitively.
21
Name:
Anonymous
2011-01-27 10:14
>>20
s/intuitively/self-documenting-codably/
22
Name:
Anonymous
2011-01-27 11:10
>>20
Calling you
fag is better because that way people does not have to spend time with you to know that.
23
Name:
Anonymous
2011-02-03 4:29
24
Name:
Anonymous
2013-01-19 14:29
/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.