![]() |
TrustCore SDK NanoSSH API reference
version 7.0
|
Functions | |
MOC_EXTERN sbyte4 | SSHC_freeFilename (sbyte4 connectionInstance, ubyte **ppFreeFilename) |
Release memory used to store a filename. More... | |
MOC_EXTERN sbyte4 | SSHC_freeHandle (sbyte4 connectionInstance, sftpcFileHandleDescr **pp_sftpFileHandleDescr) |
Release (free) memory used to store a file/directory descriptor handle. More... | |
MOC_EXTERN sbyte4 SSHC_freeFilename | ( | sbyte4 | connectionInstance, |
ubyte ** | ppFreeFilename | ||
) |
This function releases the memory used to store the specified filename.
To enable this function, the following flags must be defined in moptions.h:
__ENABLE_MOCANA_SSH_CLIENT__
__ENABLE_MOCANA_SSH_FTP_CLIENT__
connectionInstance | Connection instance returned from SSHC_connect(). |
ppFreeFilename | Pointer to address of buffer containing the NULL-terminated filename string. |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.sshc_ftp.c
MOC_EXTERN sbyte4 SSHC_freeHandle | ( | sbyte4 | connectionInstance, |
sftpcFileHandleDescr ** | pp_sftpFileHandleDescr | ||
) |
This function releases (frees) memory used to store the specified file/directory descriptor handle.
To enable this function, the following flags must be defined in moptions.h:
__ENABLE_MOCANA_SSH_CLIENT__
__ENABLE_MOCANA_SSH_FTP_CLIENT__
connectionInstance | Connection instance returned from SSHC_connect(). |
pp_sftpFileHandleDescr | Pointer to address of handle descriptor structure. |
OK
(0) if successful; otherwise a negative number error code definition from merrors.h. To retrieve a string containing an English text error identifier corresponding to the function's returned error status, use the DISPLAY_ERROR
macro.