any inputs with respect toexecvp(e_argv[0],e_argv)
function wll be helpful...
i want to know what this function does? is there such a function in C?
if possbile, any sample programs will be very much appreciated....
execvp(e_argv[0],e_argv)
User Profile
Collapse
-
what does this function do execvp()?
-
the problem is with the CLASSPATH. JVM is not finding the class in the specified path.... -
#include <stdio.h>
#include <netdb.h>
#include <netinet/in.h>
struct hostent *he;
struct in_addr a;
int
main (int argc, char **argv)
{
if (argc != 2)
{
fprintf(stderr, "usage: %s hostname\n", argv[0]);
return 1;
}
he = gethostbyname (argv[1]);
if (he)
{
...Leave a comment:
-
can anyone help me with this?
i need a C program which gets hostname as the input and prints the IP address of that hostname.
(Hostname's IP addresses will be given using a seperate file in define.....
just guide me with respect to this...
thanks....
No activity results to display
Show More
Leave a comment: