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

Function config_error_nextline

src/cfgfiles.c:1492–1512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1490}
1491
1492staticfn boolean
1493config_error_nextline(const char *line)
1494{
1495 struct _config_error_frame *ced = config_error_data;
1496
1497 if (!ced)
1498 return FALSE;
1499
1500 if (ced->num_errors && ced->secure)
1501 return FALSE;
1502
1503 ced->line_num++;
1504 ced->origline_shown = FALSE;
1505 if (line && line[0]) {
1506 (void) strncpy(ced->origline, line, sizeof (ced->origline) - 1);
1507 ced->origline[sizeof (ced->origline) - 1] = '\0';
1508 } else
1509 ced->origline[0] = '\0';
1510
1511 return TRUE;
1512}
1513
1514#ifndef SFCTOOL
1515int

Callers 1

parse_conf_bufFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected