#include <stdio.h>
#include <string.h>
void geiprintf();
int main()
{
char a[]="temp1,temp2 a,temp3,temp4 b";
unsigned long n1 = strlen(a);
geiprintf(a,n1);
return 0;
}
void geiprintf(char *cs,unsigned long n2)
{
for(int i = 0; i < n2; i++)
{
if(cs[i]!=' '&&cs[i]!='a'&&cs[i]!='b')
{
if(cs[i]==',')
cs[i]= '\n';
printf("%c",cs[i]);
}
}
} |