MCPcopy Create free account
hub / github.com/Cpasjuste/pplay / FtpSysType

Function FtpSysType

src/filer/ftplib/ftplib.cpp:1000–1011  ·  view source on GitHub ↗

* FtpSysType - send a SYST command * * Fills in the user buffer with the remote system type. If more * information from the response is required, the user can parse * it out of the response buffer returned by FtpLastResponse(). * * return 1 if command successful, 0 otherwise */

Source from the content-addressed store, hash-verified

998 * return 1 if command successful, 0 otherwise
999 */
1000GLOBALDEF int FtpSysType(char *buf, int max, netbuf *nControl) {
1001 int l = max;
1002 char *b = buf;
1003 char *s;
1004 if (!FtpSendCmd("SYST", '2', nControl))
1005 return 0;
1006 s = &nControl->response[4];
1007 while ((--l) && (*s != ' '))
1008 *b++ = *s++;
1009 *b++ = '\0';
1010 return 1;
1011}
1012
1013/*
1014 * FtpMkdir - create a directory at server

Callers

nothing calls this directly

Calls 1

FtpSendCmdFunction · 0.85

Tested by

no test coverage detected