Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
gif.c
Package: mrtg-2.13.2.zip [view]
Upload User: shbosideng
Upload Date: 2013-05-04
Package Size: 1555k
Code Size: 1k
Category:
SNMP
Development Platform:
C/C++
- /*
- Iulian Radu [v2.0@07.1999]
- */
- void fgif(char* buf,char* ext){
- char link[129],host[129],*hosti,url[257];
- if(!fh) return;
- sscanf(buf,"%s %s",link,host);
- if(strcmp(host,"#")){ //host!=# -> search for a host definition
- hosti=findhost(host);
- if(!hosti) return;
- if(strcmp(link,"#")){
- if(base[0]) sprintf(url,"http://%s/%s",base,hosti);
- else strcpy(url,hosti);
- fprintf(fh,"<A HREF="%s">",link);
- fprintf(fh,"<IMG SRC="%s%s">",url,ext);}
- else{
- if(base[0]) sprintf(url,"http://%s/%s",base,hosti);
- else strcpy(url,hosti);
- fprintf(fh,"<A HREF="%s.html">",url);
- fprintf(fh,"<IMG SRC="%s%s">",url,ext);}
- }
- else{
- if(strcmp(link,"#")){
- if(base[0]) sprintf(url,"http://%s/%s",base,link);
- else strcpy(url,link);
- fprintf(fh,"<A HREF="%s.html">",url);
- fprintf(fh,"<IMG SRC="%s%s">",url,ext);}
- else{
- fprintf(stderr,"aERROR: 0 GIF%c # #n",toupper(ext[1]));
- return;}
- }
- fprintf(fh,"</IMG></A>n");
- }
- void fgifd(char* buf){
- fgif(buf,"-day.gif");
- }
- void fgifw(char* buf){
- fgif(buf,"-week.gif");
- }
- void fgifm(char* buf){
- fgif(buf,"-month.gif");
- }
- void fgify(char* buf){
- fgif(buf,"-year.gif");
- }