wut/libraries/wutsocket/wut_socket_write.c
2021-03-07 13:09:12 +01:00

14 lines
299 B
C

#include "wut_socket.h"
ssize_t
__wut_socket_write(struct _reent *r,
void *fd,
const char *ptr,
size_t len)
{
int sockfd = *(int *)fd;
int rc = RPLWRAP(send)(sockfd, ptr, len, 0);
return (ssize_t)__wut_get_nsysnet_result(r, rc);
}