Lines Matching refs:outPtr
65 char *inPtr, *outPtr; in convert_lineends() local
87 inPtr = outPtr = memchr(startPtr, '\r', size); in convert_lineends()
95 *outPtr = *inPtr; in convert_lineends()
102 *outPtr = '\n'; in convert_lineends()
106 *outPtr = *inPtr; in convert_lineends()
109 outPtr++; in convert_lineends()
117 *outPtr = '\n'; /* copy a NL instead */ in convert_lineends()
123 *outPtr = *inPtr; in convert_lineends()
125 outPtr++; in convert_lineends()
127 if(outPtr < startPtr + size) in convert_lineends()
129 *outPtr = '\0'; in convert_lineends()
131 return (outPtr - startPtr); in convert_lineends()