MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / NFromPch

Function NFromPch

xgeneral.cpp:1979–1989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1977// motion vector quantities from draw strings, e.g. the "12" in "U12".
1978
1979int NFromPch(CONST char **ppch)
1980{
1981 int n = 0, ich = 0;
1982
1983 loop {
1984 if (!FNumCh(**ppch))
1985 return n > 0 ? n : (ich < 1 ? 1 : 0);
1986 n = n*10 + (**ppch)-'0';
1987 (*ppch)++;
1988 ich++;
1989 }
1990}
1991
1992

Callers 2

DrawTurtleFunction · 0.85
EnumConstelLinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected