SV: [LC++]NEWBIE: what is errno
Jarmo Paavilainen
netletter at comder.com
Fri Sep 21 20:13:38 UTC 2001
Hi,
"man errno" gives you all the answers you need.
Basic usage is:
#include <errno.h>
#include <stdio.h>
...Do something that sets errno...
printf( "errno is: %d %s\n", errno, strerror( errno ));
// Jarmo
...
> Reading the man pages for connect, is says that:
>
> If the connection or binding succeeds, zero is returned. On error, -1 is
> returned, and errno is set appropriately.
>
> What is errno, and how do I read it.
> --
> yours/mvh
> Peter Poulsen
> Naessundvej 208
> 9220 Aalborg East
> Denmark
>
> E-mail: peter_poulsen at stofanet.dk
> Phone: +45 98 15 47 05
> _______________________________________________
> This is the Linux C++ Programming List
> : http://lists.linux.org.au/listinfo/tuxcpprogramming List
>
More information about the tuxCPProgramming
mailing list