Skip to content

Instantly share code, notes, and snippets.

@pasali
Created November 17, 2011 22:23
Show Gist options
  • Save pasali/1374745 to your computer and use it in GitHub Desktop.
Save pasali/1374745 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <ctype.h>
#include <string.h>
int main(){
char ifade[] = " 232sdfjhf\n\t asd \0";
char *p = ifade;
int sayac = 0;
int count = 0;
int gorun = 0;
while(count != (strlen(ifade)+1)){
if(isgraph(*p))
gorun++;
else{
sayac++;
}
p++;
count++;
}
printf("sayı = %d\n",sayac);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment