Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
090b61b2
Commit
090b61b2
authored
Mar 18, 2009
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement read_yesno().
Originally committed as revision 18037 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
eab5168c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
cmdutils.c
cmdutils.c
+11
-0
cmdutils.h
cmdutils.h
+6
-0
No files found.
cmdutils.c
View file @
090b61b2
...
@@ -472,3 +472,14 @@ void show_formats(void)
...
@@ -472,3 +472,14 @@ void show_formats(void)
"decoder corresponds to the h263 and h263p encoders, for file formats it is even
\n
"
"decoder corresponds to the h263 and h263p encoders, for file formats it is even
\n
"
"worse.
\n
"
);
"worse.
\n
"
);
}
}
int
read_yesno
(
void
)
{
int
c
=
getchar
();
int
yesno
=
(
toupper
(
c
)
==
'Y'
);
while
(
c
!=
'\n'
&&
c
!=
EOF
)
c
=
getchar
();
return
yesno
;
}
cmdutils.h
View file @
090b61b2
...
@@ -152,4 +152,10 @@ void show_license(void);
...
@@ -152,4 +152,10 @@ void show_license(void);
*/
*/
void
show_formats
(
void
);
void
show_formats
(
void
);
/**
* Returns a positive value if reads from standard input a line
* starting with [yY], otherwise returns 0.
*/
int
read_yesno
(
void
);
#endif
/* FFMPEG_CMDUTILS_H */
#endif
/* FFMPEG_CMDUTILS_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment