Lines Matching refs:inPtr
74 char *inPtr, *outPtr; in convert_lineends() local
96 inPtr = outPtr = memchr(startPtr, '\r', size); in convert_lineends()
97 if(inPtr) { in convert_lineends()
99 while(inPtr < (startPtr + size-1)) { in convert_lineends()
101 if(memcmp(inPtr, "\r\n", 2) == 0) { in convert_lineends()
103 inPtr++; in convert_lineends()
104 *outPtr = *inPtr; in convert_lineends()
109 if(*inPtr == '\r') { in convert_lineends()
115 *outPtr = *inPtr; in convert_lineends()
119 inPtr++; in convert_lineends()
122 if(inPtr < startPtr + size) { in convert_lineends()
124 if(*inPtr == '\r') { in convert_lineends()
132 *outPtr = *inPtr; in convert_lineends()