48 coaches online • Server time: 16:36
* * * Did you know? The most touchdowns in a single match is 23.
Log in
Recent Forum Topics goto Post Making Assassins mor...goto Post ramchop takes on the...goto Post NAF Charity Tourney ...
Basics of C
Back to Team
pow(double base, double exp )
#1
Lineman
MA
6
ST
3
AG
4
AV
8
R
41
B
118
P
5
F
0
G
25
Cp
1
In
0
Cs
5
Td
5
Mvp
0
GPP
26
XPP
0
SPP
26
Injuries
 
Skills
Block
Side Step
The pow() function returns base raised to the expth power. There's a domain error if base is zero and exp is less than or equal to zero. There's also a domain error if base is negative and exp is not an integer. There's a range error if an overflow occurs.
malloc(size_t size)
#2
Lineman
MA
6
ST
3
AG
5
AV
7
R
28
B
89
P
9
F
2
G
26
Cp
8
In
1
Cs
4
Td
1
Mvp
5
GPP
46
XPP
0
SPP
46
Injuries
-av
Skills
+AG
Block
Dodge
The function malloc() returns a pointer to a chunk of memory of size size, or NULL if there is an error. The memory pointed to will be on the heap, not the stack, so make sure to free it when you are done with it.
 
free(void ptr)
#3
Lineman
MA
6
ST
3
AG
4
AV
8
R
35
B
74
P
9
F
0
G
25
Cp
7
In
0
Cs
4
Td
2
Mvp
0
GPP
21
XPP
0
SPP
21
Injuries
 
Skills
Block
Guard
The free() function deallocates the space pointed to by ptr, freeing it up for future use. ptr must have been used in a previous call to malloc(), calloc(), or realloc().
exit(int exit_code)
#4
Lineman
MA
6
ST
3
AG
4
AV
7
R
30
B
139
P
1
F
0
G
24
Cp
3
In
0
Cs
9
Td
3
Mvp
3
GPP
45
XPP
0
SPP
45
Injuries
-av
Skills
Block
Side Step
Tackle
The exit() function stops the program. exit_code is passed on to be the return value of the program, where usually zero indicates success and non-zero indicates an error.
 
calloc(size_t num, size_t size)
#5
Lineman
MA
6
ST
3
AG
4
AV
8
R
12
B
18
P
0
F
0
G
6
Cp
0
In
0
Cs
1
Td
2
Mvp
0
GPP
8
XPP
0
SPP
8
Injuries
 
Skills
Block
The calloc() function returns a pointer to space for an array of num objects, each of size size. The newly allocated memory is initialized to zero.
atoi(const char str)
#6
Lineman
MA
6
ST
3
AG
4
AV
8
R
2
B
4
P
1
F
3
G
5
Cp
1
In
0
Cs
0
Td
0
Mvp
1
GPP
6
XPP
0
SPP
6
Injuries
 
Skills
Block
The atoi() function converts str into an integer, and returns that integer. str should start with some sort of number, and atoi() will stop reading from str as soon as a non-numerical character has been read.
 
abort(void)
#7
Lineman
MA
6
ST
3
AG
4
AV
8
R
36
B
116
P
6
F
3
G
26
Cp
5
In
0
Cs
6
Td
3
Mvp
1
GPP
31
XPP
0
SPP
31
Injuries
 
Skills
Block
Dodge
Guard
The function abort() terminates the current program. Depending on the implementation, the return value can indicate failure.
fabs(double arg)
#10
Phoenix Warrior
MA
6
ST
4
AG
4
AV
8
R
119
B
43
P
76
F
1
G
15
Cp
32
In
0
Cs
2
Td
0
Mvp
0
GPP
36
XPP
0
SPP
36
Injuries
 
Skills
Pass
+ST
Block
Sure Hands
The function fabs() returns the absolute value of arg.
 
rand(void)
#12
Lion Warrior
MA
8
ST
3
AG
4
AV
7
R
54
B
3
P
4
F
0
G
3
Cp
1
In
0
Cs
0
Td
5
Mvp
0
GPP
16
XPP
0
SPP
16
Injuries
 
Skills
Catch
Block
Mighty Blow
The function rand() returns a pseudorandom integer between zero and RAND_MAX.
fputc(int ch, FILE stream)
#13
Lion Warrior
MA
9
ST
3
AG
4
AV
7
R
69
B
6
P
19
F
0
G
10
Cp
11
In
0
Cs
0
Td
5
Mvp
3
GPP
41
XPP
0
SPP
41
Injuries
 
Skills
Catch
+MA
Guard
Nerves of Steel
The function fputc() writes the given character ch to the given output stream. The return value is the character, unless there is an error, in which case the return value is EOF.
 
putchar(int ch)
#14
Lion Warrior
MA
8
ST
3
AG
4
AV
7
R
143
B
64
P
1
F
0
G
25
Cp
16
In
2
Cs
1
Td
7
Mvp
2
GPP
53
XPP
0
SPP
53
Injuries
 
Skills
Catch
Block
Dodge
Side Step
Tackle
The putchar() function writes ch to STDOUT.
ungetc(int ch, FILE stream)
#15
Dragon Warrior
MA
7
ST
3
AG
4
AV
8
R
18
B
67
P
2
F
0
G
11
Cp
1
In
0
Cs
7
Td
2
Mvp
1
GPP
26
XPP
0
SPP
26
Injuries
 
Skills
Block
Mighty Blow
Tackle
The function ungetc() puts the character ch back in stream.
 
realloc(void ptr, size_t size)
#16
Dragon Warrior
MA
7
ST
3
AG
4
AV
8
R
29
B
54
P
-1
F
1
G
8
Cp
1
In
0
Cs
2
Td
4
Mvp
0
GPP
17
XPP
0
SPP
17
Injuries
 
Skills
Block
Diving Tackle
Tackle
The realloc() function changes the size of the object pointed to by ptr to the given size. size can be any size, larger or smaller than the original. The return value is a pointer to the new space, or NULL if there is an error.