projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
guard the private header
[reactos.git]
/
reactos
/
lib
/
crtdll
/
old cruft
/
stdio
/
getenv.c
1
#include <precomp.h>
2
#include <msvcrt/stdlib.h>
3
4
void
*
malloc
(
size_t
size
);
5
6
7
8
/*
9
* @implemented
10
*/
11
char
*
getenv
(
const char
*
name
)
12
{
13
char
*
buffer
;
14
buffer
= (
char
*)
malloc
(
MAX_PATH
);
15
buffer
[
0
] =
0
;
16
if
(
GetEnvironmentVariableA
(
name
,
buffer
,
MAX_PATH
) ==
0
)
17
return
NULL
;
18
return
buffer
;
19
}