* 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 */
| 998 | * return 1 if command successful, 0 otherwise |
| 999 | */ |
| 1000 | GLOBALDEF 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 |
nothing calls this directly
no test coverage detected