MCPcopy Create free account
hub / github.com/RsyncProject/rsync / Continuation

Function Continuation

params.c:154–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152 } /* EatComment */
153
154static int Continuation( char *line, int pos )
155 /* ------------------------------------------------------------------------ **
156 * Scan backwards within a string to discover if the last non-whitespace
157 * character is a line-continuation character ('\\').
158 *
159 * Input: line - A pointer to a buffer containing the string to be
160 * scanned.
161 * pos - This is taken to be the offset of the end of the
162 * string. This position is *not* scanned.
163 *
164 * Output: The offset of the '\\' character if it was found, or -1 to
165 * indicate that it was not.
166 *
167 * ------------------------------------------------------------------------ **
168 */
169 {
170 pos--;
171 while( pos >= 0 && isSpace(line + pos) )
172 pos--;
173
174 return( ((pos >= 0) && ('\\' == line[pos])) ? pos : -1 );
175 } /* Continuation */
176
177
178static BOOL Section( FILE *InFile, BOOL (*sfunc)(char *) )

Callers 2

SectionFunction · 0.85
ParameterFunction · 0.85

Calls 1

isSpaceFunction · 0.85

Tested by

no test coverage detected