Microchip® Advanced Software Framework

fs.c File Reference

Virtual file system management.

Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.

#include <string.h>
#include "fs.h"
#include "fsdata.h"

Functions

int fs_open (char *name, struct fs_file *file)
 Open the specified filename in the virtual file system. More...
 

int fs_open ( char *  name,
struct fs_file file 
)

Open the specified filename in the virtual file system.

Parameters
nameFilename to open.
filePointer to an allocated struct fs_file, to be filled by fs_open if the specified filename is found.
Returns
1 on success, 0 otherwise.

References fs_file::data, fsdata_file_noconst::data, FS_ROOT, fs_file::len, fsdata_file_noconst::len, fsdata_file_noconst::name, fsdata_file_noconst::next, and NULL.

Referenced by http_recv().