It works perfectly fine except it does not return 0 or 1 as it is a void function.
Unlike in case of other member functions, this makes it hard to check in a program flow if disconnection was successful or not.
I just guess there is not much that could go wrong with disconnection in which case a void funtion is perfectly fine, just the description is ambiguing in that case. If however there might be errors during disconnection, then this function should not be void.
Hi there,
While trying the repo i found this inside FtpClient.c
It works perfectly fine except it does not return 0 or 1 as it is a void function. Unlike in case of other member functions, this makes it hard to check in a program flow if disconnection was successful or not. I just guess there is not much that could go wrong with disconnection in which case a void funtion is perfectly fine, just the description is ambiguing in that case. If however there might be errors during disconnection, then this function should not be void.