Initial commit.
FossilOrigin-Name: 4077c5737337a2717b27535a1c10dcbca63bc28a502edc7582fd2c34c800475c
This commit is contained in:
parent
5a3890f7b3
commit
10aa853d25
15
src/capwap/cw_save_file.c
Normal file
15
src/capwap/cw_save_file.c
Normal file
@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "file.h"
|
||||
|
||||
|
||||
int cw_save_file(const char *filename, char *data, int len)
|
||||
{
|
||||
FILE *outfile = fopen(filename, "wb");
|
||||
if (!outfile)
|
||||
return 0;
|
||||
|
||||
int bytes = fwrite(data, 1, len, outfile);
|
||||
fclose(outfile);
|
||||
return bytes;
|
||||
}
|
Loading…
Reference in New Issue
Block a user