Lines Matching refs:outPtr
52 char *inPtr, *outPtr; in convert_lineends() local
74 inPtr = outPtr = memchr(startPtr, '\r', size); in convert_lineends()
82 *outPtr = *inPtr; in convert_lineends()
89 *outPtr = '\n'; in convert_lineends()
93 *outPtr = *inPtr; in convert_lineends()
96 outPtr++; in convert_lineends()
104 *outPtr = '\n'; /* copy a NL instead */ in convert_lineends()
110 *outPtr = *inPtr; in convert_lineends()
112 outPtr++; in convert_lineends()
114 if(outPtr < startPtr+size) in convert_lineends()
116 *outPtr = '\0'; in convert_lineends()
118 return (outPtr - startPtr); in convert_lineends()