1sock_putc(3z)              z88dk Programmer's Manual             sock_putc(3z)
2
3
4

NAME

6       sock_putc - write byte to a network socket
7

SYNOPSIS

9       #include <net/socket.h>
10
11       size_t sock_putc(char c, SOCKET *s);
12

DESCRIPTION

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_putc() function writes a single byte c to the socket specified
18       by s.
19
20

RETURN VALUE

22       The  sock_write()  function  returns the number of bytes written to the
23       socket (i.e. 0 or 1). If an illegal socket is supplied the  carry  flag
24       will be set and the return value will be EPROTONOSUPPORT.
25
26
27

SEE ALSO

29       sock_write(3z), sock_puts(3z)
30
31

AUTHOR

33       Dominic Morris <dom@jb.man.ac.uk>
34
35
36
37                               18 February 2000                  sock_putc(3z)
Impressum