As part of my project I am getting my program to counter all characters within a text file, and it is doing this with little trouble. But I want the counter not to increase when it encounters blanks and new line which have the corresponding ASCII vlaues of '32' and '10'
This can be done in two ways
1. Either get program to ignore all ASCII values of '10' and '32'
2. Count all characters but when the program encounters '10' and '32' decrement the counter by 1
Here is my code but I am having problems
Any help would be much appreciated thanx
fscanf(stream, "%c", inchar != '10' || '32');
*string = inchar;