IP ADDRESS

2 views
Skip to first unread message

Dheena

unread,
Dec 27, 2005, 4:57:12 AM12/27/05
to linuxtalks
Dear all,
Anyone can tell me how to match the IP address using the SED
in Linux. If anyone knows please mail me.

Dheena

unread,
Dec 27, 2005, 4:57:12 AM12/27/05
to linuxtalks

iskender atasoy

unread,
Dec 30, 2005, 4:19:45 AM12/30/05
to linux...@googlegroups.com
learning IP adress in Linux
 
u can look /etc/host i guess also i prefered write ur own code is easy.
 
 
 

NAME

gethostname - get name of current host

SYNOPSIS

    #include <unistd.h>    int gethostname(char *name, size_t namelen);    

DESCRIPTION

The gethostname() function returns the standard host name for the current machine. The namelen argument specifies the size of the array pointed to by the name argument. The returned name is null-terminated, except that if namelen is an insufficient length to hold the host name, then the returned name is truncated and it is unspecified whether the returned name is null-terminated.
Host names are limited to 255 bytes.

RETURN VALUE

On successful completion, 0 is returned. Otherwise, -1 is returned.

ERRORS

No errors are defined.

SEE ALSO

gethostid() (in the XSH specification), uname(), <unistd.h>.

Dheena <dhanase...@gmail.com> wrote:
iskender atasoy
Bilgisayar Mühendisi-Computer Engineer
0535 970 13 55

iskende...@hotmail.com
iskende...@yahoo.co.uk


Time is Near..


To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.

Reply all
Reply to author
Forward
0 new messages