FreeRDP
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
Functions
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
Functions
a
c
d
e
f
g
i
o
r
s
t
Variables
a
b
c
d
e
g
i
l
m
n
o
p
r
s
t
u
v
Files
File List
Globals
All
Typedefs
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Modules
Pages
Loading...
Searching...
No Matches
DataMessage.c
1
20
#include <winpr/config.h>
21
22
#include "wlog.h"
23
24
#include "DataMessage.h"
25
26
#include <winpr/file.h>
27
28
BOOL WLog_DataMessage_Write(
const
char
* filename,
const
void
* data,
size_t
length)
29
{
30
FILE* fp = NULL;
31
BOOL ret = TRUE;
32
33
fp = winpr_fopen(filename,
"w+b"
);
34
35
if
(!fp)
36
return
FALSE;
37
38
if
(fwrite(data, length, 1, fp) != 1)
39
ret = FALSE;
40
(void)fclose(fp);
41
return
ret;
42
}
winpr
libwinpr
utils
wlog
DataMessage.c
Generated by
1.9.8