git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
update for HEAD-2003091401
[reactos.git]
/
lib
/
crtdll
/
stdio
/
getenv.c
1
#include <windows.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
}