MCPcopy Create free account
hub / github.com/SimHacker/micropolis / SimCmdOpenWebBrowser

Function SimCmdOpenWebBrowser

micropolis-activity/src/sim/w_sim.c:1399–1418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1397
1398
1399int SimCmdOpenWebBrowser(ARGS)
1400{
1401 int result = 1;
1402 char buf[512];
1403
1404 if ((argc != 3) ||
1405 (strlen(argv[2]) > 255)) {
1406 return (TCL_ERROR);
1407 }
1408
1409 sprintf(buf,
1410 "netscape -no-about-splash '%s' &",
1411 argv[2]);
1412
1413 result = system(buf);
1414
1415 sprintf(interp->result, "%d", result);
1416
1417 return (TCL_OK);
1418}
1419
1420
1421int SimCmdQuoteURL(ARGS)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected