Hallo,
this should replace '.' with ',' for all lines without the first two.
#include <stdio.h>
#define MAX 4096
int main(void)
{
char *p, line[MAX];
int i=0;
while (fgets(line, MAX, stdin))
{
i++;
if(i>2)
{
p = line;
while (*p)
{
if (*p == '.') *p = ',';
p++;
}
}
fputs(line, stdout);
}
return 0;
}
with -Ot this works on line 3 alone.
czerny