Lines Matching refs:outPtr
62 char *inPtr, *outPtr; in convert_lineends() local
84 inPtr = outPtr = memchr(startPtr, '\r', size); in convert_lineends()
92 *outPtr = *inPtr; in convert_lineends()
99 *outPtr = '\n'; in convert_lineends()
103 *outPtr = *inPtr; in convert_lineends()
106 outPtr++; in convert_lineends()
114 *outPtr = '\n'; /* copy a NL instead */ in convert_lineends()
120 *outPtr = *inPtr; in convert_lineends()
122 outPtr++; in convert_lineends()
124 if(outPtr < startPtr + size) in convert_lineends()
126 *outPtr = '\0'; in convert_lineends()
128 return (outPtr - startPtr); in convert_lineends()