I have an error :
C:\WINDOWS\Desktop\Nate\c>bcc32 word.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
word.c:
Warning W8069 word.c 47: Nonportable pointer conversion in function main
Warning W8069 word.c 47: Nonportable pointer conversion in function main
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
here is a snip of the code. Post if you need a bigger selection
Code:/*---------cut here-----------*/ if ((fd=fopen(argv[0], "r")) == NULL) { printf("File execution failure\n"); return 1; } strcpy(word,argv[2]); while ( (fread(buf, sizeof(char),MAX ,fd )) != EOF) //line of error { while ((result = search(buf, word, strlen(word)-1))!=1) printf("%d) %s",x++,*result); } /*----------cut here-----------*/



LinkBack URL
About LinkBacks


