On Tue, Feb 17, 2009 at 12:52, Fundu <fundu_1999@xxxxxxxxx> wrote: > Bert, > i did try that but got same response. I'm not: int main(int ac, char *av[]) { char *str = "<Info firstName='sam' lastName='Smith' />"; char *ptr = strchr(str, '\''); if (!ptr) return 1; printf("%s\n", str); printf("%*s^\n", (int)(ptr - str), ""); return 0; } prints: <Info firstName='sam' lastName='Smith' /> ^ -- To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html