59830eda3f
(fail when a null address is passed to a socket that is not connected).
8 lines
177 B
C
8 lines
177 B
C
#include <stdlib.h>
|
|
#include <sys/socket.h>
|
|
|
|
ssize_t send(int socket, const void *buffer, size_t length, int flags)
|
|
{
|
|
return sendto(socket, buffer, length, flags, NULL, 0);
|
|
}
|
|
|