diff options
Diffstat (limited to 'Doc/lib')
-rw-r--r-- | Doc/lib/libsocket.tex | 4 | ||||
-rw-r--r-- | Doc/lib/libstring.tex | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Doc/lib/libsocket.tex b/Doc/lib/libsocket.tex index 8599451..7596a86 100644 --- a/Doc/lib/libsocket.tex +++ b/Doc/lib/libsocket.tex @@ -193,13 +193,13 @@ socket sending the data. \begin{funcdesc}{send}{string} Send data to the socket. The socket must be connected to a remote -socket. +socket. Return the number of bytes sent. \end{funcdesc} \begin{funcdesc}{sendto}{string\, address} Send data to the socket. The socket should not be connected to a remote socket, since the destination socket is specified by -\code{address}. +\code{address}. Return the number of bytes sent. (The format of \var{address} depends on the address family -- see above.) \end{funcdesc} diff --git a/Doc/lib/libstring.tex b/Doc/lib/libstring.tex index 2bcbdfc..bf7ad09 100644 --- a/Doc/lib/libstring.tex +++ b/Doc/lib/libstring.tex @@ -130,6 +130,12 @@ Like \code{rfind} but raise \code{index_error} when the substring is not found. \end{funcdesc} +\begin{funcdesc}{count}{s\, sub\, i} +Return the number of (non-overlapping) occurrences of substring +\var{sub} in string \var{s} with index at least \var{i}. +If \var{i} is omitted, it defaults to \code{0}. +\end{funcdesc} + \begin{funcdesc}{lower}{s} Convert letters to lower case. \end{funcdesc} |