12345678910
BIN_BUFFER = new char [TAM_BUFFER]; (declared as char * BIN_BUFFER ) FILE.read (BIN_BUFFER , TAM_BUFFER); char * SCAN_DELIMITER="/r"; char SCAN_DELIMITER_I='/r'; char * pch; // want to know the first ocurrence pch = strpbrk (BIN_BUFFER, SCAN_DELIMITER); // want to last ocurrence pch=strrchr(BIN_BUFFER,SCAN_DELIMITER_I);