Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 22nd, 2005, 4:34 PM   #1
mech
Newbie
 
Join Date: Jan 2005
Posts: 1
Rep Power: 0 mech is on a distinguished road
pointer parameter (gethostbyname)

gethostbyname(const char *name);
gethostbyname is a function that has got a char pointer parameter.
I have a array variable
char r[2048];
and r array has got a null terminated string that taken from a file.(ex:"www.someaddr.com")
I couldn't managed to execute gethostbyname function correctly.
how can I give that array as a parameter?
thanks
mech is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:24 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC