If anyone knows how to get this to link please let me know ?
thanks in advance,
art
email - [EMAIL PROTECTED]
#include "stdio.h"
#include <ansi_c.h>
//#define FILBUF_LINK_ERROR
//#define IOB_LINK_ERROR
main(){
int ch;
FILE *fp;
#if defined (FILBUF_LINK_ERROR)
ch = fgetc(fp); // Wont link
ch = getc(fp); // Wont link
ch=getchar(); // Wont link
//ch=getc(stdin); // Wont link and get both __iob and __filbuf link errors
#endif
#if defined (IOB_LINK_ERROR)
ch = fread((void*) 0, (size_t) 1, (size_t) 1, stdin); // Wont link
ch = fread((void*) 0, (size_t) 1, (size_t) 1, fp); // Links
#endif
// fp=stdin; // Wont link
}