M2M_API_RESULT m2m_fs_create(CHAR *filename)
Description: the function creates the file using the given full path and filename. It performs the following activities:
•Creates the file if it does not exist and the required directory if missing.
•Truncates the file to 0 bytes if the file exists
•Closes the just opened file containing 0 bytes.
Parameters:
filename: pointer to the zero-terminated
string containing the full path of the file that you are
creating.
Return
value:
refer to
M2M_API_RESULT enum
NOTE: m2m_fs_last_error function returns the failure reason.