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

Function EatComment

params.c:129–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127 } /* EatWhitespace */
128
129static int EatComment( FILE *InFile )
130 /* ------------------------------------------------------------------------ **
131 * Scan to the end of a comment.
132 *
133 * Input: InFile - Input source.
134 *
135 * Output: The character that marks the end of the comment. Normally,
136 * this will be a newline, but it *might* be an EOF.
137 *
138 * Notes: Because the config files use a line-oriented grammar, we
139 * explicitly exclude the newline character from the list of
140 * whitespace characters.
141 * - Note that both EOF (-1) and the nul character ('\0') are
142 * considered end-of-file markers.
143 *
144 * ------------------------------------------------------------------------ **
145 */
146 {
147 int c;
148
149 for( c = getc( InFile ); ('\n'!=c) && (EOF!=c) && (c>0); c = getc( InFile ) )
150 ;
151 return( c );
152 } /* EatComment */
153
154static int Continuation( char *line, int pos )
155 /* ------------------------------------------------------------------------ **

Callers 2

SectionFunction · 0.85
ParseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected