Joined
Last Seen
-3 Reputation Points
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
0% Quality Score
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: #include"stdio.h" #include"conio.h" #include"stdlib.h" #include"string.h" #include"process.h" void main() { FILE *fp; char ch, search_string[25], temp[25]; int i=0, k, search_len; long int count=0; puts("Enter a string to be searched\n"); scanf("%s",search_string); search_len=strlen(search_string); printf("%d",search_len); if((fp=fopen("site_startup.tra","r"))==NULL) { puts("open error"); getch(); exit(0); } while((ch=fgetc(fp))!=EOF) { if(i<search_len) { temp[i]=ch; ++i; } if(i==search_len) { count++; temp[i]='\0'; k=stricmp(search_string,temp); if(k==0) … |
The End.