Sponsored Content
Full Discussion: gethostname warning
Top Forums Programming gethostname warning Post 302318157 by jim mcnamara on Thursday 21st of May 2009 12:50:40 AM
Old 05-21-2009
Code:
gcc test.c

will stop the warning, but you will get others, your code is not correct - gethostbyname() returns a pointer to a hostent structure, for example.
 

We Also Found This Discussion For You

1. Programming

regarding gethostname()

i used stuct hosent h; h=gethostname("google.com"); if(h==NULL) printf("net down"); else printf("net down"); my question hoe this gethostname will verify whether net ia active or inactive i eman whether by usin ping or sending socket . if it is socket which type of socket it is... (5 Replies)
Discussion started by: phani_sree
5 Replies
TIFFWarning(3tiff)					 Introduction to Library Functions					TIFFWarning(3tiff)

NAME
TIFFWarning, TIFFSetWarningHandler - library warning interface SYNOPSIS
#include <tiffio.h> void TIFFWarning(const char* module, const char* fmt, ...) #include <stdarg.h> typedef void (*TIFFWarningHandler)(const char* module, const char* fmt, va_list ap); TIFFWarningHandler TIFFSetWarningHandler(TIFFWarningHandler handler); DESCRIPTION
TIFFWarning invokes the library-wide warning handler function to (normally) write a warning message to stderr. The fmt parameter is a printf(3S) format string, and any number of arguments can be supplied. The module parameter is interpreted as a string that, if non-zero, should be printed before the message, and is typically used to identify the software module in which a warning is detected. Applications that desire to capture control in the event of a warning should use TIFFSetWarningHandler to override the default warning han- dler. A NULL(0) warning handler function may be installed to suppress error messages. RETURN VALUES
TIFFSetWarningHandler returns a reference to the previous error handling function. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWTiff | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
libtiff(3), TIFFError(3tiff), printf(3S) NOTES
This man page was originally written by Sam Leffler. Updated by Breda McColgan, Sun Microsystems Inc., 2004. SunOS 5.10 02 Apr 2004 TIFFWarning(3tiff)
All times are GMT -4. The time now is 07:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy