MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / ParseCommandArgFloat

Function ParseCommandArgFloat

src/protocol/ArgParser.cxx:132–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132float
133ParseCommandArgFloat(const char *s)
134{
135 char *endptr;
136 auto value = ParseFloat(s, &endptr);
137 if (endptr == s || *endptr != 0)
138 throw MakeArgError("Float expected", s);
139
140 return value;
141}
142
143SongTime
144ParseCommandArgSongTime(const char *s)

Callers 2

ParseCommandArgSongTimeFunction · 0.85

Calls 1

MakeArgErrorFunction · 0.85

Tested by

no test coverage detected