home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Spezial
/
SPEZIAL2_97.zip
/
SPEZIAL2_97.iso
/
ANWEND
/
ONLINE
/
HYPERMAI
/
HYPERMAI.ZIP
/
libcgi
/
syn_mime.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-07-28
|
588b
|
30 lines
/*
* This file is part of the LIBCGI library
*
* Copyright 1994 by Enterprise Integration Technologies Corporation
*
* This is freeware with commercialization rights reserved; see the
* LICENSE included in the distribution for specifics.
*/
#include <stdio.h>
#include "cgi.h"
int syn_mimeheader(buf, ct)
char *buf;
char *ct;
{
int x;
if (buf && ct) {
x = (int) sprintf(buf, "Content-Type: %s\n\n", ct);
return (x && x != EOF);
} else return 0;
}
int print_mimeheader(ct)
char *ct;
{
return (ct && (printf("Content-Type: %s\n\n", ct) != EOF));
}