1sock_puts(3z) z88dk Programmer's Manual sock_puts(3z)
2
3
4
6 sock_write - write string to a network socket
7
9 #include <net/socket.h>
10
11 size_t sock_puts(SOCKET *s, char *dp);
12
14 The parameter s is a descriptor to an open socket created using
15 sock_open(3z) or sock_listen(3z)
16
17 The sock_puts() function writes the NULL terminated string dp to the
18 socket specified by s.
19
20
21
23 The sock_write() function returns the number of bytes written to the
24 socket. If an illegal socket is supplied the carry flag will be set and
25 the return value will be EPROTONOSUPPORT.
26
27
28
30 sock_write(3z), sock_putc(3z)
31
32
34 Dominic Morris <dom@jb.man.ac.uk>
35
36
37
38 18 February 2000 sock_puts(3z)