MCPcopy Create free account
hub / github.com/NetHack/NetHack / find_optparam

Function find_optparam

src/cfgfiles.c:587–598  ·  view source on GitHub ↗

find the '=' or ':' */

Source from the content-addressed store, hash-verified

585
586/* find the '=' or ':' */
587staticfn char *
588find_optparam(char *buf)
589{
590 char *bufp, *altp;
591
592 bufp = strchr(buf, '=');
593 altp = strchr(buf, ':');
594 if (!bufp || (altp && altp < bufp))
595 bufp = altp;
596
597 return bufp;
598}
599
600#ifndef SFCTOOL
601

Callers 3

cnf_line_OPTIONSFunction · 0.85
parse_config_lineFunction · 0.85
parse_conf_bufFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected