Post History
C (gcc), 117 bytes b,r;f(char*s){char*p=s;for(;*p;p++)*p-=47+7*(*p>57),b=b<*p?*p:b;if(b<2)return p-s;for(;*s;s++)r*=b,r+=*s-1;return r;} Try it online!
Answer
#1: Initial revision
# [C (gcc)], 117 bytes <!-- language-all: lang-c --> b,r;f(char*s){char*p=s;for(;*p;p++)*p-=47+7*(*p>57),b=b<*p?*p:b;if(b<2)return p-s;for(;*s;s++)r*=b,r+=*s-1;return r;} [Try it online!][TIO-l8d5j8fl] [C (gcc)]: https://gcc.gnu.org/ [TIO-l8d5j8fl]: https://tio.run/##VY7PTsMwDIfvfopoCClJW@RkK2FLM7QNeAngsHbtGml0UdKJw9RnLyl/Dpxs//x9sqvsWFXjWKZeN7Rq954Hdv2uzgTdnD3V3GmXJIy7zCxUojjlbp0rlpamLLh75G5VatvQspDM1/3Fd8Rlf2rQIaqem3ggMTxkQv8yXg/jje2q0@VQkyL0B3u@a9cAtuvJx952lMEVCJleIeFVIOK7jvNna081oce6DzQwFpOJIsT5KDZ0dhtWZJaSwPT/2L51MW4m52dTGm9wagcYYEQQsIQNPMMLIAIKEDESgBIkgpRwn8MyAhvYPkQgEhjBJ4Rd7IWcw2a7A6UULPL5Fw "C (gcc) – Try It Online"