Thank you so much! Now it skips the the white spaces, but I seem to be having trouble with lines that have less than 21 characters on it. ><
#include <stdio.h>
#include <stdlib.h>
int main...
Type: Posts; User: code_bunny
Thank you so much! Now it skips the the white spaces, but I seem to be having trouble with lines that have less than 21 characters on it. ><
#include <stdio.h>
#include <stdlib.h>
int main...
Okay, that's the entire thing. If there's just a blank line then do nothing ... I just need it to ignore space characters ' ', and put all the characters one line.
while ((curCh = fgetc(sp1)) !=...
Hello, I am trying to write a program that copies the 21st character of each line, excluding spaces. And if the line has less than 21 character to just copy the last character. So far, I can do all...