comparing chars with pointer to char
the code below is suppose to read from a file and to print out all alphanumeric characters(a-z,A-Z,0-0) spaces and newlines, throwing away the rest.
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
typedef char * STRNG;
STRNG code[80];
STRNG...
this is supossed to read a file and write out the first line, and all non blanks lines preceded by a blank line.
it recognises the blang lines but all that it prints is <null>
/*This program reads a file given as command line argument
and writes out the first lines and all(non blank) lines...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.