Search Results

Search: Posts Made By: Ahsan
Forum: Programming 09-07-2003
6,013
Posted By Ahsan
How to halt Prog Execution for some time?
Hi,
Perhaps I am asking a silly question, but I really don't know about it. Can anyone tell me the function for "sleep" kind of functionality in C language for Unix. I don't think any function with...
Forum: Programming 08-29-2003
3,472
Posted By Ahsan
Sorry All, The warning comes on the inner line...
Sorry All,
The warning comes on the inner line of this function. The line is:

fprintf(stderr,
" } at %p size %d\n",sockets,((MAX_TCPCLIENTS)*(sizeof(int))));

Now sockets is an integer...
Forum: Programming 08-29-2003
54,782
Posted By Ahsan
Sorry All, The warning comes on the inner line...
Sorry All,
The warning comes on the inner line of this function. The line is:

fprintf(stderr,
" } at %p size %d\n",sockets,((MAX_TCPCLIENTS)*(sizeof(int))));

The warning talks about...
Forum: Programming 08-29-2003
54,782
Posted By Ahsan
This I have figured out. I didn't include the...
This I have figured out. I didn't include the header files for bzero(), inet_addr().

Can anyone guide about the other warning?


"void format, different type arg (arg 1)"

The function's on...
Forum: Programming 08-29-2003
54,782
Posted By Ahsan
gcc warnings: implicit declaration of function...
I am having strange warnings from gcc compiler, which I don't think should come while cmpiling.
Can anyone help? The warnings are:
- warning: implicit declaration of function 'bzero'
- warning:...
Forum: Programming 08-29-2003
3,472
Posted By Ahsan
gcc compiler warning
The gcc compiler is giving following error in my code. Can Anyone help, why is this warning popping up.

"void format, different type arg (arg 1)"

The function's on which warning is given, looks...
Forum: Programming 08-25-2003
3,597
Posted By Ahsan
My problem is solved. Actually, I was doing a...
My problem is solved. Actually, I was doing a silly mistake. I was giving double slashes for commetn, a C++ style of giving comments // which is not allowed in C.
Forum: Programming 08-25-2003
3,597
Posted By Ahsan
gcc Compiler Switches: giving Illogical Errors
Hi,
Has anyone used gcc compiler and know alot about it? I am compiling a file with:
gcc -o xyz xyz.c abc.o -lsocket -lnsl
it compiles pretty fine.

But whe I use switches
gcc -o -Wall...
Forum: Programming 08-25-2003
30,626
Posted By Ahsan
How to get IP Address of machine?
Is there any API call to get IP Address of a machine? I know there is function which returns name of the machine, gethostname(). But I need the IP.

Thanks & Regards,
Ahsan
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 09:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy