riot_sys::bindgen

Function vfs_format_by_path

Source
pub unsafe extern "C" fn vfs_format_by_path(
    path: *const c_char,
) -> c_int
Expand description

@brief Format a file system

The file system must not be mounted in order to be formatted. Call @ref vfs_unmount_by_path first if necessary.

@note This assumes mount points have been configured with @ref VFS_AUTO_MOUNT.

@param[in] path Path of the pre-configured mount point

@return 0 on success @return <0 on error